Skip to content

Commit fdeb990

Browse files
Add workspace configuration for apps directory
1 parent 6cb1dcc commit fdeb990

4 files changed

Lines changed: 51 additions & 4 deletions

File tree

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ next-env.d.ts
4747

4848

4949
.env
50-
51-
scripts
5250
.vscode
5351
mcp.json
54-
5552
CLAUDE.md
56-
.claude
53+
# Workspace documentation (keep these files)
54+
55+
# Apps workspace - ignore build artifacts only
56+
apps/*/node_modules/
57+
apps/*/build/
58+
apps/*/dist/
59+
apps/*/.next/
60+
apps/*/out/
61+
apps/*/.env
62+
apps/*/.env.local
63+
apps/*/pnpm-lock.yaml

.vercelignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Vercel Deployment - Ignore apps workspace
2+
3+
# Apps directory (desktop app deployed separately)
4+
apps/
5+
apps/**
6+
7+
# Only deploy web app (@codinit/web) from root

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
packages:
2+
- '.'
3+
- 'apps/*'
4+
15
onlyBuiltDependencies:
26
- '@swc/core'
37
- '@vercel/speed-insights'

vercel.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"buildCommand": "pnpm build",
4+
"devCommand": "pnpm dev",
5+
"installCommand": "pnpm install --filter @codinit/web",
6+
"framework": "nextjs",
7+
"outputDirectory": ".next",
8+
"ignoreCommand": "git diff --quiet HEAD^ HEAD ./",
9+
"regions": ["iad1"],
10+
"cleanUrls": true,
11+
"trailingSlash": false,
12+
"headers": [
13+
{
14+
"source": "/api/(.*)",
15+
"headers": [
16+
{
17+
"key": "Cache-Control",
18+
"value": "no-store, max-age=0"
19+
}
20+
]
21+
}
22+
],
23+
"rewrites": [
24+
{
25+
"source": "/s/:path*",
26+
"destination": "/api/redirect/:path*"
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)