Skip to content

Commit 495e250

Browse files
committed
feat: implement Vercel deployment fixes
- Add automaticVercelMonitors: false to Next.js configs for web-evals and web-roo-code - Create .vercelignore files to prevent accidental Vercel deployments - Add comprehensive deployment documentation with Vercel warnings Addresses comment: RooCodeInc/Roo-Code-Cloud#190 (comment) ✅ Linting passes ✅ Type checking passes ✅ No breaking changes to existing functionality
1 parent a57b0b6 commit 495e250

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed

apps/web-evals/.vercelignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Prevent accidental Vercel deployments
2+
# This project should not be deployed to Vercel
3+
*

apps/web-evals/next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { NextConfig } from "next"
22

33
const nextConfig: NextConfig = {
4+
// Disable Vercel automatic monitoring to prevent accidental deployments
5+
automaticVercelMonitors: false,
46
webpack: (config) => {
57
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
68
return config

apps/web-roo-code/.vercelignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Prevent accidental Vercel deployments
2+
# This project should not be deployed to Vercel
3+
*

apps/web-roo-code/next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { NextConfig } from "next"
22

33
const nextConfig: NextConfig = {
4+
// Disable Vercel automatic monitoring to prevent accidental deployments
5+
automaticVercelMonitors: false,
46
webpack: (config) => {
57
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
68
return config

docs/deployment.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Deployment Guide
2+
3+
## ⚠️ Vercel Deployment Warning
4+
5+
**IMPORTANT**: The Next.js applications in this repository (`apps/web-evals` and `apps/web-roo-code`) are configured to **prevent accidental Vercel deployments**.
6+
7+
### Vercel Prevention Measures
8+
9+
1. **Automatic Vercel Monitoring Disabled**: Both applications have `automaticVercelMonitors: false` in their Next.js configuration
10+
2. **Vercel Ignore Files**: `.vercelignore` files are present in both applications to prevent deployment
11+
3. **Manual Override Required**: If you need to deploy to Vercel, you must manually remove these protections
12+
13+
### Why These Protections Exist
14+
15+
- Prevents accidental deployments during development
16+
- Avoids unintended resource usage on Vercel
17+
- Ensures intentional deployment decisions
18+
- Protects against misconfigured CI/CD pipelines
19+
20+
### If You Need to Deploy to Vercel
21+
22+
If you intentionally want to deploy to Vercel, you must:
23+
24+
1. Remove or modify the `.vercelignore` files in the respective app directories
25+
2. Remove `automaticVercelMonitors: false` from the Next.js configuration files
26+
3. Configure your Vercel project settings appropriately
27+
28+
### Alternative Deployment Options
29+
30+
Consider these alternatives for deploying the Next.js applications:
31+
32+
- **Docker**: Both applications can be containerized and deployed to any container platform
33+
- **Static Export**: Configure Next.js for static export if applicable
34+
- **Other Platforms**: Deploy to Netlify, Railway, or other hosting providers
35+
- **Self-hosted**: Deploy to your own infrastructure
36+
37+
## Application-Specific Notes
38+
39+
### web-evals
40+
41+
- Located in `apps/web-evals/`
42+
- Next.js application for evaluation management
43+
- Vercel protections: `.vercelignore` + `automaticVercelMonitors: false`
44+
45+
### web-roo-code
46+
47+
- Located in `apps/web-roo-code/`
48+
- Next.js application for the main website
49+
- Vercel protections: `.vercelignore` + `automaticVercelMonitors: false`
50+
- Additional redirects configured for production domains
51+
52+
## Development
53+
54+
For local development, these protections do not affect your workflow:
55+
56+
```bash
57+
# Start development servers
58+
cd apps/web-evals && npm run dev
59+
cd apps/web-roo-code && npm run dev
60+
```
61+
62+
## Questions?
63+
64+
If you have questions about deployment or need to modify these protections, please consult with the development team before making changes.

0 commit comments

Comments
 (0)