no sync for now

main
Ethan Niser 2023-09-15 14:46:47 +00:00 committed by GitHub
parent 38f842dcda
commit 72f523a885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

@ -6,7 +6,7 @@ const env = createEnv({
LOG_LEVEL: z.enum(["debug", "info", "warn", "error"]),
DATABASE_URL: z.string().min(1),
DATABASE_AUTH_TOKEN: z.string().min(1),
SYNC_URL: z.string().optional(),
// SYNC_URL: z.string().optional(),
NODE_ENV: z.enum(["development", "production"]),
COOKIE_SECRET: z.string().min(1),
},

@ -6,9 +6,9 @@ import { config } from "../config";
export const client = createClient({
url: config.env.DATABASE_URL,
authToken: config.env.DATABASE_AUTH_TOKEN,
syncUrl: config.env.SYNC_URL,
// syncUrl: config.env.SYNC_URL,
});
if (config.env.SYNC_URL) await client.sync();
// if (config.env.SYNC_URL) await client.sync();
export const db = drizzle(client, { schema, logger: true });

@ -20,6 +20,7 @@
"allowJs": true,
"types": [
"bun-types" // add Bun global
]
],
"plugins": [{ "name": "@kitajs/html/tsp" }]
}
}