mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
added cloudflare support in readme
This commit is contained in:
parent
670bcb7b3f
commit
f01721f251
29
README.md
29
README.md
@ -333,6 +333,35 @@ Remember to always commit your local changes or stash them before pulling update
|
||||
- **`pnpm run deploy`**: Deploys the project to Cloudflare Pages.
|
||||
- **`pnpm run lint:fix`**: Automatically fixes linting issues.
|
||||
|
||||
## Deployment
|
||||
|
||||
### Deploying to Cloudflare Pages
|
||||
|
||||
1. **Login to Cloudflare** (if you haven't already):
|
||||
```bash
|
||||
wrangler login
|
||||
```
|
||||
|
||||
2. **Install Dependencies**:
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
|
||||
3. **Build and Deploy**:
|
||||
```bash
|
||||
pnpm run deploy
|
||||
```
|
||||
This command will build the project and deploy it to Cloudflare Pages.
|
||||
|
||||
4. **Configure API Keys**:
|
||||
After deployment, you'll need to configure your API keys through the Bolt interface:
|
||||
1. Open your deployed site
|
||||
2. Select your desired provider from the dropdown menu
|
||||
3. Click the pencil (edit) icon
|
||||
4. Enter your API key in the secure input field
|
||||
|
||||
Note: The deployment process uses Wrangler, Cloudflare's official deployment tool. Make sure you have the necessary Cloudflare permissions before deploying.
|
||||
|
||||
---
|
||||
|
||||
## Contributing
|
||||
|
||||
Loading…
Reference in New Issue
Block a user