This commit is contained in:
2026-01-21 15:00:11 +08:00
parent fd20ca2c52
commit 011c9211f5
62 changed files with 2 additions and 2 deletions

14
apps/server/src/env.ts Normal file
View File

@@ -0,0 +1,14 @@
import { createEnv } from '@t3-oss/env-core'
import { z } from 'zod'
export const env = createEnv({
server: {
DATABASE_URL: z.url(),
},
clientPrefix: 'VITE_',
client: {
VITE_APP_TITLE: z.string().min(1).optional(),
},
runtimeEnv: process.env,
emptyStringAsUndefined: true,
})