mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
* docker-compose for production frontend * fix: Remove external Redis port mapping for Coolify compatibility Redis should only be accessible within the internal Docker network in Coolify deployments to avoid port conflicts with other applications. * fix: Remove external port mapping for web service in Coolify Coolify handles port exposure through its proxy (Traefik), so services should not expose ports directly in the docker-compose file. * server side client envs * missing vars * nextjs experimental * fix claude 'fix' * remove build env vars compose * docker * remove ports for coolify * review * cleanup --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
18 lines
561 B
TypeScript
18 lines
561 B
TypeScript
import { isBuildPhase } from "./next";
|
|
import { assertExistsAndNonEmptyString, NonEmptyString } from "./utils";
|
|
|
|
const _getNextEnvVar = (name: string, e?: string): NonEmptyString =>
|
|
isBuildPhase
|
|
? (() => {
|
|
throw new Error(
|
|
"panic! getNextEnvVar called during build phase; we don't support build envs",
|
|
);
|
|
})()
|
|
: assertExistsAndNonEmptyString(
|
|
process.env[name],
|
|
`${name} is required; ${e}`,
|
|
);
|
|
|
|
export const getNextEnvVar = (name: string, e?: string): NonEmptyString =>
|
|
_getNextEnvVar(name, e);
|