chore: Add netlify.toml configuration

This commit is contained in:
CharleeWa 2023-12-25 21:48:38 +08:00
parent 8d71e8d588
commit cb7371e1ad
3 changed files with 15 additions and 2 deletions

View File

@ -1,2 +0,0 @@
dist
node_modules

View File

@ -4,4 +4,10 @@ export default antfu({
// enable UnoCSS support
// https://unocss.dev/integrations/vscode
unocss: true,
ignores: [
'netlify.toml',
'node_modules',
'dist',
],
})

9
netlify.toml Normal file
View File

@ -0,0 +1,9 @@
[build]
base = "/"
publish = "dist"
command = "npm run build"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200