chore(build): add new build scripts for Cloudflare and update wrangler.toml

This commit is contained in:
taroj1205 2025-06-22 17:03:59 +12:00
parent 525a614178
commit 442311b203
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
3 changed files with 4 additions and 2 deletions

View file

@ -85,7 +85,7 @@ jobs:
if: ${{ needs.check_changes.outputs.exists == 'true' }}
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.52.0-jammy
image: mcr.microsoft.com/playwright:v1.52.0-noble
options: --user 1001
steps:
- uses: actions/checkout@v4

View file

@ -10,6 +10,8 @@
"dev": "astro dev --port 3000",
"start": "astro preview --port 3000",
"build": "astro check && astro build",
"build:cf": "bun upgrade && bun install --frozen-lockfile && bun run build",
"build:node": "bun install --frozen-lockfile && npm run build",
"preview": "astro preview --port 3000",
"wrangler": "wrangler",
"astro": "astro",

View file

@ -2,7 +2,7 @@ name = "zenbrowser-www"
pages_build_output_dir = "./dist"
[build]
command = "bun run build"
command = "bun run build:cf"
[env]
production = {}