Skip to content

Commit

Permalink
chore: depoly
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Dec 5, 2024
1 parent fb98324 commit 8e0ace1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ command = "pnpm run build"
NODE_VERSION = "20"

[[redirects]]
from = "/*"
to = "/index.html"
from = "/api/*"
to = "/api/:splat"
status = 200

[[redirects]]
from = "/api/*"
to = "/api/:splat"
from = "/*"
to = "/index.html"
status = 200
5 changes: 2 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ export default defineNuxtConfig({
// },
nitro: {
prerender: {
autoSubfolderIndex: false,
// crawlLinks: false,
crawlLinks: false,
routes: ['/'],
},
// preset: 'netlify',
preset: 'netlify',
},

future: {
Expand Down

0 comments on commit 8e0ace1

Please sign in to comment.