mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 19:46:37 +08:00
2.0 KiB
2.0 KiB
Vercel Usage Instructions
How to Create a New Project
After you fork this project from Github, you need to create a new Vercel project to redeploy it. Please follow the steps below:
- Go to the Vercel dashboard.
- Click "Add New".
- Select "Project".
- In the "Import Git Repository" section, search for "chatgpt-next-web".
- Select the newly forked project and click "Import".
- On the project configuration page, click "Environment Variables" to start configuring environment variables.
- Add environment variables named "OPENAI_API_KEY" and "CODE" (Access Password) respectively.
- Fill in the corresponding values for the environment variables.
- Click "Add" to confirm adding the environment variables.
- Make sure you have added the "OPENAI_API_KEY". Otherwise, it will not work.
- Click "Deploy", the creation is complete, please wait patiently for about 5 minutes for the deployment to complete.
How to Add a Custom Domain
[TODO]
How to Change Environment Variables
- Go to the Vercel project dashboard and click the "Settings" button at the top.
- Click "Environment Variables" on the left.
- Click the button to the right of the existing entry.
- Select "Edit" to edit, and then save.
⚠️ Note: Every time you modify the environment variables, you need to redeploy the project for the changes to take effect!
How to Redeploy
- Go to the Vercel project dashboard and click the "Deployments" button at the top.
- Select the button to the right of the top item in the list.
- Click "Redeploy" to redeploy.