mongodb connection
This commit is contained in:
parent
2bc3453ff9
commit
ee267bf62a
20 changed files with 210 additions and 548 deletions
2
env.mjs
2
env.mjs
|
|
@ -3,6 +3,7 @@ import { z } from "zod"
|
|||
|
||||
export const env = createEnv({
|
||||
server: {
|
||||
MONGODB_URI: z.string(),
|
||||
ANALYZE: z
|
||||
.enum(["true", "false"])
|
||||
.optional()
|
||||
|
|
@ -11,5 +12,6 @@ export const env = createEnv({
|
|||
client: {},
|
||||
runtimeEnv: {
|
||||
ANALYZE: process.env.ANALYZE,
|
||||
MONGODB_URI: process.env.MONGODB_URI,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue