docs/user/deployment/vercel_en.md
| Deployment Method | Advantages | Disadvantages |
|---|---|---|
| One-click Deployment | Quick and convenient, no additional setup required | Cannot automatically sync updates from the source project |
| Fork and Import | Can track source project updates, easier to maintain | First deployment may require checking the project root and build settings |
This method allows you to track project updates, making it easier to sync the latest features and bug fixes.
Fork the project to your GitHub account
Import the project to Vercel
Check the root directory setting (Recommended)
a. After the project is deployed, go to project settings
b. Click "Build and Deployment" in the left menu
c. In the "Root Directory" section, clear the content in the input box
d. Click "Save" to save the settings
Configure environment variables (Optional)
VITE_* variables are bundled into the frontend build output, so visitors can download those values in the browser. For public sites, let users configure their own API keys in the application UI.VITE_* model settings for controlled private deployments, and use keys that are rotatable, scoped, and cost-limited.ACCESS_PASSWORDRedeploy the project
Sync upstream updates
If you only need quick deployment and don't care about subsequent updates, you can use the one-click deployment method:
Follow Vercel's guidance to complete the deployment process
Advantage: With one-click deployment, Vercel can usually identify the root directory correctly without manual fixing.
When the ACCESS_PASSWORD environment variable is configured, your site will enable password protection:
Prompt Optimizer had Vercel / Docker built-in proxy support in early versions, but current versions have removed built-in model proxy endpoints because of SSRF security risk.
The Web version is still a pure frontend application:
The root api/auth.js and middleware.js files are only used for access-password verification in Vercel deployments. They are not model API proxy routes.
Blank page or error after deployment
Cannot connect to model API
How to update a deployed project
How to add a custom domain