mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
less edgy config (ci)
This commit is contained in:
2
.github/workflows/test_next_server.yml
vendored
2
.github/workflows/test_next_server.yml
vendored
@@ -11,7 +11,7 @@ on:
|
|||||||
- "www/**"
|
- "www/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-frontend:
|
test-next-server:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
|||||||
@@ -2,14 +2,6 @@ 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: {
|
||||||
@@ -38,7 +30,6 @@ 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;
|
||||||
|
|
||||||
if (isCI) {
|
if (isCI) {
|
||||||
|
|||||||
Reference in New Issue
Block a user