only sync if local

main
Ethan Niser 2023-09-28 22:45:33 -05:00
parent e1a8545f70
commit 8f9ba2a3c5
1 changed files with 3 additions and 1 deletions

@ -20,6 +20,8 @@ const options = {
export const client = createClient(options[DATABASE_CONNECTION_TYPE]);
await client.sync();
if (config.env.DATABASE_CONNECTION_TYPE === "local-replica") {
await client.sync();
}
export const db = drizzle(client, { schema, logger: true });