fix: vercel deployment

This commit is contained in:
Danish Arora 2025-10-29 18:46:44 +05:30
parent 2e9871d3a1
commit fe2f954c93
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E
4 changed files with 7477 additions and 1159 deletions

45
.vercelignore Normal file
View File

@ -0,0 +1,45 @@
# Development files
*.log
*.tmp
.DS_Store
.vscode/
.idea/
# Test files
**/*.test.*
**/*.spec.*
**/test/
**/tests/
**/__tests__/
# Documentation
README.md
*.md
docs/
# Package manager files
package-lock.json
yarn.lock
pnpm-lock.yaml
# Build artifacts (except dist)
**/dist/
!app/dist/
# Source files (we only need the built app)
packages/
!packages/core/dist/
!packages/react/dist/
# Development configs
.eslintrc*
.prettierrc*
vitest.config.*
vite.config.*
tailwind.config.*
postcss.config.*
tsconfig*.json
# Git
.git/
.gitignore

View File

@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "npm run build:deps && vite build",
"build:deps": "cd ../packages/core && npm run build && cd ../react && npm run build",
"build:dev": "vite build --mode development",
"check": "tsc --project tsconfig.app.json --noEmit && tsc --project tsconfig.node.json --noEmit && eslint . --fix && prettier --write .",
"fix": "prettier --write . && eslint . --fix",
@ -102,5 +103,8 @@
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1",
"vitest": "^3.2.4"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.28.1"
}
}

8574
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,13 @@
{
"version": 2,
"installCommand": "npm ci --workspaces",
"buildCommand": "npm run -w packages/core build && npm run -w packages/react build && npm run -w app build",
"installCommand": "npm ci --workspaces --include=optional",
"buildCommand": "cd app && npm run build",
"outputDirectory": "app/dist",
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
"functions": {
"app/dist/**": {
"runtime": "nodejs20.x"
}
}
}