mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 16:25:52 +00:00
chore: update path
This commit is contained in:
@@ -90,7 +90,7 @@ const SmeeClient = require("smee-client"); // eslint-disable-line
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import next from "next";
|
import next from "next";
|
||||||
|
|
||||||
const dir = path.join(__dirname, "../../frontend");
|
const dir = path.join(__dirname, "../frontend-build");
|
||||||
|
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
await setup();
|
await setup();
|
||||||
@@ -214,6 +214,7 @@ const main = async () => {
|
|||||||
app.use("/api", healthCheck);
|
app.use("/api", healthCheck);
|
||||||
|
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
|
process.chdir(dir);
|
||||||
const nextApp = next({
|
const nextApp = next({
|
||||||
dev: false,
|
dev: false,
|
||||||
dir
|
dir
|
||||||
|
|||||||
Reference in New Issue
Block a user