Skip to content

Commit d385877

Browse files
committed
Update next.config.mjs with relative assetPrefix
1 parent 3d01415 commit d385877

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

next.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
output: 'export',
4+
distDir: 'build',
45
basePath: '',
5-
assetPrefix: '',
6+
assetPrefix: './_next/',
67
images: {
78
unoptimized: true,
89
},
910
};
1011

11-
export default nextConfig;
12+
export default nextConfig;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"postbuild": "node scripts/fix-paths.js",
1110
"deploy": "gh-pages -d out"
1211
},
1312
"dependencies": {

scripts/fix-paths.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)