-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a676d5
commit 2d52ab9
Showing
3 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// client-env.ts | ||
import { createEnv } from '@t3-oss/env-nextjs'; | ||
import { z } from 'zod'; | ||
// // client-env.ts | ||
// import { createEnv } from '@t3-oss/env-nextjs'; | ||
// import { z } from 'zod'; | ||
|
||
export const clientEnv = createEnv({ | ||
client: { | ||
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: z.string().min(1), | ||
}, | ||
runtimeEnv: { | ||
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: | ||
process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY, | ||
}, | ||
}); | ||
// export const clientEnv = createEnv({ | ||
// client: { | ||
// NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: z.string().min(1), | ||
// }, | ||
// runtimeEnv: { | ||
// NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: | ||
// process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY, | ||
// }, | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
// server-env.ts | ||
import { createEnv } from '@t3-oss/env-nextjs'; | ||
import { z } from 'zod'; | ||
// // server-env.ts | ||
// import { createEnv } from '@t3-oss/env-nextjs'; | ||
// import { z } from 'zod'; | ||
|
||
export const serverEnv = createEnv({ | ||
server: { | ||
DATABASE_URL: z.string().url(), | ||
NEXTAUTH_SECRET: z.string().min(1), | ||
NEXTAUTH_URL: z.string().url(), | ||
CDN_API_KEY: z.string().min(1), | ||
CDN_BASE_UPLOAD_URL: z.string().url(), | ||
CDN_BASE_ACCESS_URL: z.string().url(), | ||
}, | ||
runtimeEnv: { | ||
DATABASE_URL: process.env.DATABASE_URL, | ||
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, | ||
NEXTAUTH_URL: process.env.NEXTAUTH_URL, | ||
CDN_API_KEY: process.env.CDN_API_KEY, | ||
CDN_BASE_UPLOAD_URL: process.env.CDN_BASE_UPLOAD_URL, | ||
CDN_BASE_ACCESS_URL: process.env.CDN_BASE_ACCESS_URL, | ||
}, | ||
}); | ||
// export const serverEnv = createEnv({ | ||
// server: { | ||
// DATABASE_URL: z.string().url(), | ||
// NEXTAUTH_SECRET: z.string().min(1), | ||
// NEXTAUTH_URL: z.string().url(), | ||
// CDN_API_KEY: z.string().min(1), | ||
// CDN_BASE_UPLOAD_URL: z.string().url(), | ||
// CDN_BASE_ACCESS_URL: z.string().url(), | ||
// }, | ||
// runtimeEnv: { | ||
// DATABASE_URL: process.env.DATABASE_URL, | ||
// NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, | ||
// NEXTAUTH_URL: process.env.NEXTAUTH_URL, | ||
// CDN_API_KEY: process.env.CDN_API_KEY, | ||
// CDN_BASE_UPLOAD_URL: process.env.CDN_BASE_UPLOAD_URL, | ||
// CDN_BASE_ACCESS_URL: process.env.CDN_BASE_ACCESS_URL, | ||
// }, | ||
// }); |