From 9695cc4bdfc91380ed45f864210f289258010a3c Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 4 Sep 2025 12:12:46 -0400 Subject: [PATCH] ci randomness --- www/app/lib/edgeConfig.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/www/app/lib/edgeConfig.ts b/www/app/lib/edgeConfig.ts index 73d09db3..723e72aa 100644 --- a/www/app/lib/edgeConfig.ts +++ b/www/app/lib/edgeConfig.ts @@ -2,6 +2,14 @@ import { get } from "@vercel/edge-config"; import { isBuildPhase, isCI } from "./next"; +console.log("DEBUG: CI env vars:", { + CI: process.env.CI, + IS_CI: process.env.IS_CI, + isCI, + NEXT_PHASE: process.env.NEXT_PHASE, + isBuildPhase, +}); + type EdgeConfig = { [domainWithDash: string]: { features: { @@ -30,16 +38,9 @@ export function edgeDomainToKey(domain: string) { // get edge config server-side (prefer DomainContext when available), domain is the hostname export async function getConfig() { + throw new Error("next js and github actions are great"); const domain = new URL(process.env.NEXT_PUBLIC_SITE_URL!).hostname; - console.log("DEBUG: CI env vars:", { - CI: process.env.CI, - IS_CI: process.env.IS_CI, - isCI, - NEXT_PHASE: process.env.NEXT_PHASE, - isBuildPhase, - }); - if (isCI) { // "noop" return require("../../config-template").localConfig;