N
Nuxt2w ago
yashwp

Nuxt does not render updated content after build

I've integrated WordPress for blogs on our site. At the time of build, the blogs that are already there are getting rendered. For there are 3 blogs on the site. Now from WordPress content team has added 5 more blogs. Their blogs are not showing up on the site. They will start showing, only if I redeploy. This site is supposed to be SSR Why is that? Below is my nuxt.config.ts
export default defineNuxtConfig({
pages: true,
components: [
{
path: '~/components',
pathPrefix: false
}
],
modules: [
'@nuxt/content',
'@nuxtjs/sitemap'
],
nitro: {
prerender: {
crawlLinks: true,
failOnError: false,
routes: ['/', '/sitemap.xml']
},
routeRules: {
...
}
},
site: {...},
sitemap: {
xsl: false,
exclude: [...],
sources: [
'/api/__sitemap__/posts',
...
],
sitemaps: true,
discoverImages: false,
defaultSitemapsChunkSize: 500
}
});
export default defineNuxtConfig({
pages: true,
components: [
{
path: '~/components',
pathPrefix: false
}
],
modules: [
'@nuxt/content',
'@nuxtjs/sitemap'
],
nitro: {
prerender: {
crawlLinks: true,
failOnError: false,
routes: ['/', '/sitemap.xml']
},
routeRules: {
...
}
},
site: {...},
sitemap: {
xsl: false,
exclude: [...],
sources: [
'/api/__sitemap__/posts',
...
],
sitemaps: true,
discoverImages: false,
defaultSitemapsChunkSize: 500
}
});
0 Replies
No replies yetBe the first to reply to this messageJoin