Skip to content

Commit

Permalink
trailingSlash test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuujin committed May 27, 2024
1 parent 6b113af commit 0e0bf5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/web/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ export default defineNuxtConfig({
const supabaseKey = process.env.SUPABASE_KEY
if (!supabaseUrl || !supabaseKey) return
},
'prerender:routes': (context) => {
for (const path of [...context.routes]) {
if (!path.endsWith('.html') && path !== '/') {
context.routes.delete(path)
context.routes.add(`${path}/`)
}
}
},
},
build: {
transpile: ['vue-toastification'],
Expand Down

0 comments on commit 0e0bf5b

Please sign in to comment.