From bb8c4149a46182efe1f42027cba90d731be91aca Mon Sep 17 00:00:00 2001 From: Tomas Francisco <4301103+tomasfrancisco@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:17:33 +0200 Subject: [PATCH] mark node_env as optional in drizzle config --- packages/database/drizzle.config.ts | 2 +- packages/database/src/schema/resources/resources.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/database/drizzle.config.ts b/packages/database/drizzle.config.ts index 0678c96..a6d121f 100644 --- a/packages/database/drizzle.config.ts +++ b/packages/database/drizzle.config.ts @@ -8,7 +8,7 @@ loadEnvConfig(process.cwd()); export const env = createEnv({ server: { POSTGRES_URL: z.string().url(), - NODE_ENV: z.enum(['development', 'test', 'production']), + NODE_ENV: z.enum(['development', 'test', 'production']).optional(), }, runtimeEnv: { POSTGRES_URL: process.env.POSTGRES_URL, diff --git a/packages/database/src/schema/resources/resources.ts b/packages/database/src/schema/resources/resources.ts index 26d66ce..92989e2 100644 --- a/packages/database/src/schema/resources/resources.ts +++ b/packages/database/src/schema/resources/resources.ts @@ -60,7 +60,7 @@ export const Resources = pgTable('resources', { .unique(), name: text('name').notNull(), designTokens: - json('design_tokens').$type>(), + json('design_tokens').$type>(), }); export const InsertResourcesSchema = createInsertSchema(Resources, {