fix non-dev

This commit is contained in:
Sara
2023-12-14 16:34:41 +01:00
parent c4557bb9e2
commit c693857dcc

View File

@@ -30,7 +30,7 @@ export function edgeDomainToKey(domain: string) {
// get edge config server-side (prefer DomainContext when available), domain is the hostname
export async function getConfig(domain: string) {
if (isDevelopment()) {
if (process.env.NEXT_PUBLIC_ENV === "development") {
return require("../../config").localConfig;
}