mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
ci randomness
This commit is contained in:
@@ -2,6 +2,14 @@ import { get } from "@vercel/edge-config";
|
|||||||
|
|
||||||
import { isBuildPhase, isCI } from "./next";
|
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 = {
|
type EdgeConfig = {
|
||||||
[domainWithDash: string]: {
|
[domainWithDash: string]: {
|
||||||
features: {
|
features: {
|
||||||
@@ -30,16 +38,9 @@ export function edgeDomainToKey(domain: string) {
|
|||||||
|
|
||||||
// get edge config server-side (prefer DomainContext when available), domain is the hostname
|
// get edge config server-side (prefer DomainContext when available), domain is the hostname
|
||||||
export async function getConfig() {
|
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;
|
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) {
|
if (isCI) {
|
||||||
// "noop"
|
// "noop"
|
||||||
return require("../../config-template").localConfig;
|
return require("../../config-template").localConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user