We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf6b8c commit 5acf8faCopy full SHA for 5acf8fa
next.config.js
@@ -1,10 +1,8 @@
1
/** @type {import('next').NextConfig} */
2
const nextConfig = {
3
output: 'export',
4
- basePath: process.env.NODE_ENV === "production" ? "/" : "",
5
images: {
6
unoptimized: true,
7
- path: process.env.NODE_ENV === "production" ? "/" : "",
8
},
9
reactStrictMode: true,
10
swcMinify: true,
utils/index.ts
@@ -1,8 +1,4 @@
export const publicFilePath = (path: string) => {
- // For deployment to github pages
- if (process.env.NODE_ENV === "production") {
- return `/${path}`;
- } else {
- return path;
- }
+ // No need to add prefix anymore
+ return path;
};
0 commit comments