Skip to content

Commit 86fed66

Browse files
Merge pull request #1238 from objectstack-ai/claude/independent-vercel-deployment
Create independent server app for Vercel deployment
2 parents 4b90fcc + 6578cee commit 86fed66

File tree

15 files changed

+1470
-195
lines changed

15 files changed

+1470
-195
lines changed

apps/server/.env.example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Environment Variables for ObjectUI Server
2+
3+
# Authentication Secret (REQUIRED in production)
4+
# Must be at least 32 characters
5+
AUTH_SECRET=dev-secret-please-change-in-production-min-32-chars
6+
7+
# Base URL for the application
8+
# Leave empty to auto-detect from VERCEL_URL on Vercel
9+
# Set explicitly for custom domains
10+
# NEXT_PUBLIC_BASE_URL=https://your-domain.com
11+
12+
# Runtime Mode (automatically set during build)
13+
# VITE_RUNTIME_MODE=server
14+
15+
# Server URL (automatically set during build)
16+
# VITE_SERVER_URL=

apps/server/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Dependencies
2+
node_modules/
3+
.pnpm-store/
4+
5+
# Build outputs
6+
dist/
7+
api/_handler.js
8+
api/_handler.js.map
9+
public/
10+
11+
# Environment
12+
.env
13+
.env.local
14+
.env.*.local
15+
16+
# Logs
17+
*.log
18+
npm-debug.log*
19+
pnpm-debug.log*
20+
21+
# OS
22+
.DS_Store
23+
Thumbs.db
24+
25+
# IDE
26+
.vscode/
27+
.idea/
28+
*.swp
29+
*.swo
30+
*~
31+
32+
# Vercel
33+
.vercel

apps/server/.vercelignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Vercel build artifacts
2+
node_modules/
3+
.pnpm-store/
4+
dist/
5+
6+
# Test files
7+
*.test.ts
8+
*.spec.ts
9+
__tests__/
10+
test/
11+
12+
# Source files (only need compiled output)
13+
*.ts
14+
!api/**/*.js
15+
!scripts/**/*.mjs
16+
17+
# Config files
18+
tsconfig.json
19+
vitest.config.ts
20+
postcss.config.js
21+
tailwind.config.js
22+
23+
# Documentation
24+
*.md
25+
!README.md
26+
27+
# Git
28+
.git/
29+
.gitignore

0 commit comments

Comments
 (0)