mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 17:27:40 +00:00
conditionally build standalone infisical
This commit is contained in:
@@ -105,6 +105,7 @@ COPY --from=frontend-runner /app ./backend/frontend-build
|
|||||||
ENV PORT 8080
|
ENV PORT 8080
|
||||||
ENV HTTPS_ENABLED false
|
ENV HTTPS_ENABLED false
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
ENV STANDALONE_BUILD true
|
||||||
|
|
||||||
WORKDIR /backend
|
WORKDIR /backend
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ const main = async () => {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
if ((await getNodeEnv()) === "production") {
|
if ((await getNodeEnv()) === "production" && process.env.STANDALONE_BUILD === "true") {
|
||||||
const nextJsBuildPath = path.join(__dirname, "../frontend-build");
|
const nextJsBuildPath = path.join(__dirname, "../frontend-build");
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|||||||
Reference in New Issue
Block a user