feat: Add vercel deployment configuration

This commit is contained in:
autoactions 2024-12-18 21:07:12 +08:00
parent 6d903440b4
commit b868bf8c99
2 changed files with 39 additions and 0 deletions

26
.vercelignore Normal file
View File

@ -0,0 +1,26 @@
# Git related
.git
.github
.gitmodules
.gitattributes
.gitignore
# Development configs
.vscode
.idea
.dependency-cruiser.cjs
# Environment and secrets
.env
.env.*
# Documentation and logs
docs
*.md
*.log
# Test files
coverage
test
**/*.test.*
**/__tests__

13
vercel.json Normal file
View File

@ -0,0 +1,13 @@
{
"version": 2,
"buildCommand": "npm run build",
"outputDirectory": "dist",
"installCommand": "npm config set ignore-scripts true && npm ci && npm rebuild",
"routes": [
{ "handle": "filesystem" },
{ "src": "/.*", "dest": "/index.html" }
],
"env": {
"SKIP_POSTINSTALL": "1"
}
}