Skip to content

Commit

Permalink
[Gateway] - Set distDir based on NODE_ENV: (#1693)
Browse files Browse the repository at this point in the history
* Set distDir based on NODE_ENV
  • Loading branch information
Jennievon authored Jan 8, 2024
1 parent 74e0a39 commit f6f147a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/walletextension/frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
const nextConfig = {
reactStrictMode: true,
output: "export",
// distDir is where the static files are generated
// on dev mode, it is generated in .next folder in the root directory
// comment this during dev mode
distDir: "../api/static",
// distDir should be "../api/static" in production but .next in development
distDir: process.env.NODE_ENV === "development" ? ".next" : "../api/static",
};

module.exports = nextConfig;

0 comments on commit f6f147a

Please sign in to comment.