Skip to content

Commit

Permalink
perf(nitro): prerender named page files
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 23, 2024
1 parent 0389401 commit 80a82af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default defineNuxtConfig(
defu(
{
extends: ['@dargmuesli/nuxt-vio'],
nitro: {
prerender: {
autoSubfolderIndex: false, // prevents Cloudflare Pages' redirection issue (https://community.cloudflare.com/t/removing-trailing-slash-on-static-websites/583429/4)
},
},
vite: {
optimizeDeps: {
include: ['@dargmuesli/nuxt-vio/utils/constants'],
Expand Down

0 comments on commit 80a82af

Please sign in to comment.