Skip to content

Commit f6cb9d3

Browse files
committed
fix static export
1 parent 5951ec1 commit f6cb9d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const nextConfig = {
1414
eslint: {
1515
ignoreDuringBuilds: true,
1616
},
17+
output: "export",
1718
images: {
1819
unoptimized: true,
1920
domains: ["static.ian.pw"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"sitemap": "next-sitemap --config next-sitemap.config.mjs",
1111
"build": "next build && yarn sitemap",
1212
"build:analyze": "ANALYZE=1 next build",
13-
"build:static": "NEXT_PUBLIC_EXPORT_STATIC=1 yarn build && NEXT_PUBLIC_EXPORT_STATIC=1 next export",
13+
"build:static": "NEXT_PUBLIC_EXPORT_STATIC=1 yarn build",
1414
"typecheck": "tsc",
1515
"start": "next start",
1616
"postinstall": "husky install"

0 commit comments

Comments
 (0)