mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
github debug
This commit is contained in:
5
.github/workflows/test_next_server.yml
vendored
5
.github/workflows/test_next_server.yml
vendored
@@ -43,6 +43,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pnpm test
|
run: pnpm test
|
||||||
|
env:
|
||||||
- name: Build
|
NEXT_PUBLIC_IS_CI: true
|
||||||
run: pnpm build
|
|
||||||
@@ -42,8 +42,9 @@ export async function getConfig() {
|
|||||||
return require("../../config-template").localConfig;
|
return require("../../config-template").localConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.NEXT_PUBLIC_ENV === "development" && !isCI) {
|
if (process.env.NEXT_PUBLIC_ENV === "development") {
|
||||||
return require("../../config").localConfig;
|
const configPath = "../../config";
|
||||||
|
return require(configPath).localConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
let config = await get(edgeDomainToKey(domain));
|
let config = await get(edgeDomainToKey(domain));
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
// next.js tries to run all the lib code during build phase; we don't always want it when e.g. we have connections initialized we don't want to have
|
// next.js tries to run all the lib code during build phase; we don't always want it when e.g. we have connections initialized we don't want to have
|
||||||
export const isBuildPhase = process.env.NEXT_PHASE?.includes("build");
|
export const isBuildPhase = process.env.NEXT_PHASE?.includes("build");
|
||||||
export const isCI = process.env.CI === "true" || process.env.IS_CI === "true";
|
export const isCI =
|
||||||
|
process.env.CI === "true" ||
|
||||||
|
process.env.IS_CI === "true" ||
|
||||||
|
process.env.NEXT_PUBLIC_IS_CI === "true";
|
||||||
|
|||||||
Reference in New Issue
Block a user