Skip to content

Commit 9928b2a

Browse files
feat: create independent server app for Vercel deployment
- Create apps/server package with all necessary files - Add package.json with ObjectStack dependencies - Create objectstack.config.ts with plugin configuration - Add server/index.ts entrypoint with Hono adapter - Create API handler (api/[[...route]].js) for Vercel - Add build scripts (build-vercel.sh, bundle-api.mjs) - Configure Vercel deployment (vercel.json) - Add environment config (.env.example) - Create .gitignore and .vercelignore - Add tsconfig.json for TypeScript compilation - Write comprehensive README.md - Write detailed DEPLOYMENT.md guide Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/1401bb2d-d094-4280-a66d-bee5388fc83a Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent 4b90fcc commit 9928b2a

13 files changed

Lines changed: 1058 additions & 0 deletions

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)