Skip to content

Commit

Permalink
fix: hotfix recursive fetching with query string
Browse files Browse the repository at this point in the history
cc: @pi0
  • Loading branch information
danielroe committed Oct 14, 2023
1 parent daca9ba commit 862d23a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ export default defineNuxtConfig({
'/enterprise': { redirect: '/enterprise/support', prerender: false },
'/docs/community/changelog': { redirect: 'https://github.com/nuxt/nuxt/releases', prerender: false }
},
nitro: {
hooks: {
'prerender:generate' (route) {
// TODO: fix issue with recursive fetches with query string, e.g.
// `/enterprise/agencies?region=europe&service=ecommerce&service=ecommerce&service=content-marketing`
if (route.route?.includes('&')) {
route.skip = true
}
}
}
},
$development: {
runtimeConfig: {
public: {
Expand Down

0 comments on commit 862d23a

Please sign in to comment.