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 requires manual root directory fix to enable Vercel proxy functionality |
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
Fix the root directory setting (Strongly recommended)
vercel.json file already contains related fixes to make basic functionality worka. 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_OPENAI_API_KEY)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 automatically correctly identify the root directory, no manual fixing required, and all features (including Vercel proxy) can work normally.
When the ACCESS_PASSWORD environment variable is configured, your site will enable password protection:
Prompt Optimizer supports using Edge Runtime proxy to solve cross-origin issues when deployed on Vercel.
Confirm proxy functionality is available
Enable proxy functionality
Proxy principle
/api pathNotes
Blank page or error after deployment
Cannot connect to model API
"Use Vercel Proxy" option not displayed
How to update a deployed project
How to add a custom domain