Skip to content

Commit

Permalink
chore: test env
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 4, 2024
1 parent 0cbb87c commit cbba0b5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export async function connectDatabase(
} else {
// @ts-ignore
const runtime = useRuntimeConfig(event);
console.log(runtime, JSON.stringify(runtime));
console.log(
// @ts-ignore
globalThis.__cf_env__,
// @ts-ignore
globalThis.__cf_env__?.DATABASE,
runtime,
JSON.stringify(runtime)
);
const { cloudflare } = event.context;
console.log(cloudflare, event.context, JSON.stringify(event.context));
const db = drizzle(cloudflare.env.DATABASE, {
Expand Down

0 comments on commit cbba0b5

Please sign in to comment.