upstream #1
@ -26,10 +26,6 @@ module.exports = withBundleAnalyzer({
|
|||||||
use: ['@svgr/webpack'],
|
use: ['@svgr/webpack'],
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!dev && isServer) {
|
|
||||||
require('./scripts/generate-sitemap')
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dev && !isServer) {
|
if (!dev && !isServer) {
|
||||||
// Replace React with Preact only in client production build
|
// Replace React with Preact only in client production build
|
||||||
Object.assign(config.resolve.alias, {
|
Object.assign(config.resolve.alias, {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "next dev",
|
"start": "next dev",
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build && node ./scripts/generate-sitemap",
|
||||||
"serve": "next start",
|
"serve": "next start",
|
||||||
"analyze": "ANALYZE=true next build"
|
"analyze": "ANALYZE=true next build"
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,7 @@ const siteMetadata = require('../data/siteMetadata')
|
|||||||
'pages/*.js',
|
'pages/*.js',
|
||||||
'data/**/*.mdx',
|
'data/**/*.mdx',
|
||||||
'data/**/*.md',
|
'data/**/*.md',
|
||||||
|
'public/tags/**/*.xml',
|
||||||
'!pages/_*.js',
|
'!pages/_*.js',
|
||||||
'!pages/api',
|
'!pages/api',
|
||||||
])
|
])
|
||||||
@ -21,9 +22,11 @@ const siteMetadata = require('../data/siteMetadata')
|
|||||||
const path = page
|
const path = page
|
||||||
.replace('pages', '')
|
.replace('pages', '')
|
||||||
.replace('data', '')
|
.replace('data', '')
|
||||||
|
.replace('public', '')
|
||||||
.replace('.js', '')
|
.replace('.js', '')
|
||||||
.replace('.mdx', '')
|
.replace('.mdx', '')
|
||||||
.replace('.md', '')
|
.replace('.md', '')
|
||||||
|
.replace('/index.xml', '')
|
||||||
const route = path === '/index' ? '' : path
|
const route = path === '/index' ? '' : path
|
||||||
return `
|
return `
|
||||||
<url>
|
<url>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user