Skip to content

Commit

Permalink
backend(19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibiing committed Dec 17, 2024
1 parent 6a5871e commit 8ba62e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

if (process.env.NODE_ENV === "production") {
const distPath = path.join(__dirname, "dist");
const distPath = path.join(__dirname, process.env.DIST_PATH || "dist");

// Serve static files
app.use(express.static(distPath));
Expand Down

0 comments on commit 8ba62e7

Please sign in to comment.