|
|
@@ -26,7 +26,13 @@ if (process.env.NUXT_ENV === 'dev') {
|
|
|
*/
|
|
|
export default defineNuxtConfig({
|
|
|
ssr: true,
|
|
|
- target: 'static',
|
|
|
+ routeRules: {
|
|
|
+ // all routes will be generated at build time and cached permanently
|
|
|
+ '/**': { prerender: true },
|
|
|
+ // these pages will be background revalidated (ISR) at most every 60 seconds
|
|
|
+ '/actualites': { isr: 60 },
|
|
|
+ '/nous-rejoindre': { isr: 60 },
|
|
|
+ },
|
|
|
title: 'Opentalent',
|
|
|
runtimeConfig: {
|
|
|
// Private config that is only available on the server
|
|
|
@@ -197,7 +203,4 @@ export default defineNuxtConfig({
|
|
|
},
|
|
|
display: 'block',
|
|
|
},
|
|
|
- generate: {
|
|
|
- exclude: [/^\/actualites\/\d+/, /^\/nous-rejoindre\/\d+/],
|
|
|
- },
|
|
|
})
|