We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f4e96e + b112482 commit 306793aCopy full SHA for 306793a
next.config.ts
@@ -1,7 +1,12 @@
1
-import type { NextConfig } from "next";
+// import type { NextConfig } from "next";
2
3
-const nextConfig: NextConfig = {
+const isProd = process.env.NODE_ENV === "production";
4
+
5
+const nextConfig = {
6
output: "export",
7
+ basePath: isProd ? "/<repo>" : "",
8
+ assetPrefix: isProd ? "/<repo>/" : "",
9
+ trailingSlash: true,
10
};
11
12
module.exports = nextConfig;
0 commit comments