update postbuild script
This commit is contained in:
8
next-sitemap.config.js
Normal file
8
next-sitemap.config.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/** @type {import('next-sitemap').IConfig} */
|
||||||
|
export default {
|
||||||
|
siteUrl: 'https://notenextra.trance-0.com',
|
||||||
|
changefreq: 'weekly',
|
||||||
|
priority: '0.5',
|
||||||
|
generateIndexSitemap: false,
|
||||||
|
exclude: ['/icon.svg']
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next --turbopack",
|
"dev": "next --turbopack",
|
||||||
"build": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build && npm run postbuild",
|
"build": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build",
|
||||||
"build:test": "cross-env ANALYZE=true NODE_OPTIONS='--inspect --max-old-space-size=4096' next build",
|
"build:test": "cross-env ANALYZE=true NODE_OPTIONS='--inspect --max-old-space-size=4096' next build",
|
||||||
"build:analyze": "cross-env ANALYZE=true NODE_OPTIONS='--max-old-space-size=16384' next build",
|
"build:analyze": "cross-env ANALYZE=true NODE_OPTIONS='--max-old-space-size=16384' next build",
|
||||||
"postbuild": "next-sitemap && pagefind --site .next/server/app --output-path public/_pagefind && cp -r ./public/_pagefind ./out",
|
"postbuild": "next-sitemap && pagefind --site .next/server/app --output-path public/_pagefind && cp -r ./public/_pagefind ./out",
|
||||||
|
|||||||
Reference in New Issue
Block a user