export async function registration(request, env) {
// Convert env object to JSON-safe format
// Changed
const envBindings = {};
for (const key in env) {
envBindings[key] = typeof env[key]; // Show the type of each binding
}
console.log('Available Environment Bindings:', JSON.stringify(envBindings, null, 2));
// Explicitly check if CURATED_EMAIL exists
if (!env.CURATED_EMAIL) {
console.error('ERROR: `CURATED_EMAIL` KV binding is missing in `env`!');
} else {
console.log('CURATED_EMAIL KV binding exists!');
}
export async function registration(request, env) {
// Convert env object to JSON-safe format
// Changed
const envBindings = {};
for (const key in env) {
envBindings[key] = typeof env[key]; // Show the type of each binding
}
console.log('Available Environment Bindings:', JSON.stringify(envBindings, null, 2));
// Explicitly check if CURATED_EMAIL exists
if (!env.CURATED_EMAIL) {
console.error('ERROR: `CURATED_EMAIL` KV binding is missing in `env`!');
} else {
console.log('CURATED_EMAIL KV binding exists!');
}