Skip to content

Commit

Permalink
Remove old env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Apr 15, 2024
1 parent 1565804 commit dfb9637
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
CONTENTFUL_SPACE_ID=
CONTENTFUL_DELIVERY_TOKEN=
CONTENTFUL_PREVIEW_TOKEN=

NEXT_PUBLIC_API_URL=https://ais.armada.nu
9 changes: 1 addition & 8 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@ import { createEnv } from "@t3-oss/env-nextjs"
import { z } from "zod"

export const env = createEnv({
server: {
CONTENTFUL_SPACE_ID: z.string().min(1),
CONTENTFUL_DELIVERY_TOKEN: z.string().min(1),
CONTENTFUL_PREVIEW_TOKEN: z.string().min(1)
},
server: {},
client: {
NEXT_PUBLIC_API_URL: z.string().min(1)
},
runtimeEnv: {
CONTENTFUL_DELIVERY_TOKEN: process.env.CONTENTFUL_DELIVERY_TOKEN,
CONTENTFUL_PREVIEW_TOKEN: process.env.CONTENTFUL_PREVIEW_TOKEN,
CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL
}
// If you're using Next.js < 13.4.4, you'll need to specify the runtimeEnv manually
Expand Down

0 comments on commit dfb9637

Please sign in to comment.