File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 11/** @type {import('next-sitemap').IConfig } */
2-
32module . exports = {
4- siteUrl : process . env . NEXT_PUBLIC_HOME_URL || " https://fastgpt.io" ,
3+ siteUrl : process . env . NEXT_PUBLIC_HOME_URL || ' https://fastgpt.io' ,
54 generateRobotsTxt : true ,
65 sitemapSize : 7000 ,
76
@@ -123,8 +122,6 @@ module.exports = {
123122 disallow : [ '/api/' , '/admin/' ]
124123 }
125124 ] ,
126- additionalSitemaps : [
127- `${ process . env . NEXT_PUBLIC_HOME_URL || "https://fastgpt.io" } /sitemap.xml`
128- ]
125+ additionalSitemaps : [ `${ process . env . NEXT_PUBLIC_HOME_URL || 'https://fastgpt.io' } /sitemap.xml` ]
129126 }
130- }
127+ } ;
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2-
32const nextConfig = {
43 // Only use static export for production builds
54 // Dev mode uses dynamic server rendering for better DX
6- ...( process . env . NODE_ENV === 'production' && { output : " export" } ) ,
5+ ...( process . env . NODE_ENV === 'production' && { output : ' export' } ) ,
76 images : { unoptimized : true }
8- }
7+ } ;
98
10- module . exports = nextConfig
9+ module . exports = nextConfig ;
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "dev" : " next dev" ,
77 "prebuild" : " node scripts/manage-faq-routes.js" ,
8- "postbuild" : " next-sitemap" ,
9- "build" : " next build" ,
8+ "build" : " next build && next-sitemap" ,
109 "start" : " npx serve@latest out" ,
1110 "lint" : " next lint" ,
1211 "prepare" : " husky install" ,
You can’t perform that action at this time.
0 commit comments