diff --git a/apps/web-evals/.vercelignore b/apps/web-evals/.vercelignore new file mode 100644 index 0000000000..6768d1db80 --- /dev/null +++ b/apps/web-evals/.vercelignore @@ -0,0 +1,3 @@ +# Prevent accidental Vercel deployments +# This project should not be deployed to Vercel +* \ No newline at end of file diff --git a/apps/web-evals/next.config.ts b/apps/web-evals/next.config.ts index 08ed853fc3..7ae4aa7494 100644 --- a/apps/web-evals/next.config.ts +++ b/apps/web-evals/next.config.ts @@ -1,6 +1,8 @@ import type { NextConfig } from "next" const nextConfig: NextConfig = { + // Disable Vercel automatic monitoring to prevent accidental deployments + automaticVercelMonitors: false, webpack: (config) => { config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] } return config diff --git a/apps/web-roo-code/.vercelignore b/apps/web-roo-code/.vercelignore new file mode 100644 index 0000000000..6768d1db80 --- /dev/null +++ b/apps/web-roo-code/.vercelignore @@ -0,0 +1,3 @@ +# Prevent accidental Vercel deployments +# This project should not be deployed to Vercel +* \ No newline at end of file diff --git a/apps/web-roo-code/next.config.ts b/apps/web-roo-code/next.config.ts index 27f71d6b57..40ae7deabc 100644 --- a/apps/web-roo-code/next.config.ts +++ b/apps/web-roo-code/next.config.ts @@ -1,6 +1,8 @@ import type { NextConfig } from "next" const nextConfig: NextConfig = { + // Disable Vercel automatic monitoring to prevent accidental deployments + automaticVercelMonitors: false, webpack: (config) => { config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] } return config diff --git a/docs/deployment.md b/docs/deployment.md new file mode 100644 index 0000000000..1d11f44663 --- /dev/null +++ b/docs/deployment.md @@ -0,0 +1,64 @@ +# Deployment Guide + +## ⚠️ Vercel Deployment Warning + +**IMPORTANT**: The Next.js applications in this repository (`apps/web-evals` and `apps/web-roo-code`) are configured to **prevent accidental Vercel deployments**. + +### Vercel Prevention Measures + +1. **Automatic Vercel Monitoring Disabled**: Both applications have `automaticVercelMonitors: false` in their Next.js configuration +2. **Vercel Ignore Files**: `.vercelignore` files are present in both applications to prevent deployment +3. **Manual Override Required**: If you need to deploy to Vercel, you must manually remove these protections + +### Why These Protections Exist + +- Prevents accidental deployments during development +- Avoids unintended resource usage on Vercel +- Ensures intentional deployment decisions +- Protects against misconfigured CI/CD pipelines + +### If You Need to Deploy to Vercel + +If you intentionally want to deploy to Vercel, you must: + +1. Remove or modify the `.vercelignore` files in the respective app directories +2. Remove `automaticVercelMonitors: false` from the Next.js configuration files +3. Configure your Vercel project settings appropriately + +### Alternative Deployment Options + +Consider these alternatives for deploying the Next.js applications: + +- **Docker**: Both applications can be containerized and deployed to any container platform +- **Static Export**: Configure Next.js for static export if applicable +- **Other Platforms**: Deploy to Netlify, Railway, or other hosting providers +- **Self-hosted**: Deploy to your own infrastructure + +## Application-Specific Notes + +### web-evals + +- Located in `apps/web-evals/` +- Next.js application for evaluation management +- Vercel protections: `.vercelignore` + `automaticVercelMonitors: false` + +### web-roo-code + +- Located in `apps/web-roo-code/` +- Next.js application for the main website +- Vercel protections: `.vercelignore` + `automaticVercelMonitors: false` +- Additional redirects configured for production domains + +## Development + +For local development, these protections do not affect your workflow: + +```bash +# Start development servers +cd apps/web-evals && npm run dev +cd apps/web-roo-code && npm run dev +``` + +## Questions? + +If you have questions about deployment or need to modify these protections, please consult with the development team before making changes.