Merge branch 'main' into add-docker-support

This commit is contained in:
Dominic Elm 2024-10-07 10:58:22 +02:00 committed by GitHub
commit 71c4398e29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 59 deletions

View File

@ -25,53 +25,3 @@ jobs:
- name: Run tests
run: pnpm run test
build-and-deploy:
name: Build and Deploy
needs: test
runs-on: ubuntu-latest
environment: ${{ github.ref_name == 'master' && 'production' || 'staging' }}
if: ${{ github.ref != 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup and Build
uses: ./.github/actions/setup-and-build
- name: Deploy to Cloudflare
id: deploy
uses: cloudflare/wrangler-action@v3
with:
wranglerVersion: '* -w'
packageManager: pnpm
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy
- name: Deployment URL
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
run: echo $DEPLOYMENT_URL
- name: Comment on Commit
if: github.event_name == 'push'
uses: hasura/comment-progress@v2.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
id: deploy-preview-commit
commit-sha: ${{ github.sha }}
message: '${{ github.sha }} has been deployed to ${{ steps.deploy.outputs.deployment-url }} :rocket:'
recreate: true
- name: Comment on PR
if: github.event_name == 'pull_request'
uses: hasura/comment-progress@v2.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
id: deploy-preview-pr
number: ${{ github.event.number }}
message: '#${{ github.event.number }} has been deployed to ${{ steps.deploy.outputs.deployment-url }} :rocket:'
recreate: true

View File

@ -121,4 +121,4 @@ To run bolt dev in docker(Add ANTHROPIC_API_KEY=XXX before running)
```
docker run -p 5173:5173 --env-file .env.local bolt-ai
```
```

View File

@ -29,7 +29,7 @@ Here are some tips to get the most out of Bolt.new:
- **Use the enhance prompt icon**: Before sending your prompt, try clicking the 'enhance' icon to have the AI model help you refine your prompt, then edit the results before submitting.
- **Scaffold the basics first, then add features**: Make sure the basic structure of your application is in place before diving into more advanced functionality. This helps Bolt understand the foundation of your project and ensure everything is wired upu right before building out more advanced functionality.
- **Scaffold the basics first, then add features**: Make sure the basic structure of your application is in place before diving into more advanced functionality. This helps Bolt understand the foundation of your project and ensure everything is wired up right before building out more advanced functionality.
- **Batch simple instructions**: Save time by combining simple instructions into one message. For example, you can ask Bolt to change the color scheme, add mobile responsiveness, and restart the dev server, all in one go saving you time and reducing API credit consumption significantly.

View File

@ -164,13 +164,6 @@ export function Menu() {
</DialogRoot>
</div>
<div className="flex items-center border-t border-bolt-elements-borderColor p-4">
<a href="/logout">
<IconButton className="p-1.5 gap-1.5">
<>
Logout <span className="i-ph:sign-out text-lg" />
</>
</IconButton>
</a>
<ThemeSwitch className="ml-auto" />
</div>
</div>