update postbuild script

This commit is contained in:
Trance-0
2025-08-17 11:48:10 +10:00
parent e57c53b10d
commit d75813d872
2 changed files with 9 additions and 1 deletions

8
next-sitemap.config.js Normal file
View 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']
}

View File

@@ -1,7 +1,7 @@
{
"scripts": {
"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: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",