Skip to content

Commit

Permalink
revert the changes for next.config.js to avoid issues with the next r…
Browse files Browse the repository at this point in the history
…elease
  • Loading branch information
zkokelj committed May 13, 2024
1 parent e011c4d commit 7d4c738
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/walletextension/frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: "export",
// distDir should be "../api/static" in production but .next in development
distDir: process.env.NODE_ENV === "development" ? ".next" : "../api/static",
images: {
unoptimized: true,
},
// base path for static files should be "" in development but "/static" in production
basePath: process.env.NODE_ENV === "development" ? "" : "/static",
};

module.exports = nextConfig;

0 comments on commit 7d4c738

Please sign in to comment.