diff --git a/env/server.ts b/env/server.ts index f529df644..0dfac259b 100644 --- a/env/server.ts +++ b/env/server.ts @@ -1,8 +1,6 @@ import { createEnv } from "@t3-oss/env-nextjs" import { z } from "zod" -console.warn({ PROCESS_ENV: process.env }) - export const env = createEnv({ /** * Due to t3-env only checking typeof window === "undefined" diff --git a/update-dotenv.mjs b/update-dotenv.mjs index bc05e59c6..19ae7d4f1 100644 --- a/update-dotenv.mjs +++ b/update-dotenv.mjs @@ -32,6 +32,13 @@ if (!NEXTAUTH_URL) { } let contents = fs.readFileSync("./.env", { encoding: "utf-8" }) +console.log({ pre_contents: contents }) +console.log({ + SCANDIC_ENV_URL, + NEXTAUTH_URL, + DEPLOY_PRIME_URL, + URL, +}) contents = contents.replace( // 'URL="REPLACEME-ON-BUILD-ON-NETLIFY"', @@ -45,4 +52,6 @@ contents = contents.replace( `NEXTAUTH_URL="${NEXTAUTH_URL}"` ) +console.log({ post_contents: contents }) + fs.writeFileSync("./.env", contents, { encoding: "utf-8" })