Skip to content

Commit

Permalink
Merge pull request #7 from Design-System-Project/fix/database-env-vars
Browse files Browse the repository at this point in the history
mark node_env as optional in drizzle config
  • Loading branch information
tomasfrancisco authored Aug 21, 2024
2 parents 31bfcd1 + bb8c414 commit e1b9fdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/database/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/database/src/schema/resources/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Resources = pgTable('resources', {
.unique(),
name: text('name').notNull(),
designTokens:
json('design_tokens').$type<z.infer<typeof DesignTokensSchema>>(),
json('design_tokens').$type<z.infer<typeof PreprocessedTokensSchema>>(),
});

export const InsertResourcesSchema = createInsertSchema(Resources, {
Expand Down

0 comments on commit e1b9fdb

Please sign in to comment.