mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore(build): add new build scripts for Cloudflare and update wrangler.toml
This commit is contained in:
parent
525a614178
commit
442311b203
3 changed files with 4 additions and 2 deletions
2
.github/workflows/ci-pipeline.yml
vendored
2
.github/workflows/ci-pipeline.yml
vendored
|
@ -85,7 +85,7 @@ jobs:
|
||||||
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/playwright:v1.52.0-jammy
|
image: mcr.microsoft.com/playwright:v1.52.0-noble
|
||||||
options: --user 1001
|
options: --user 1001
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
"dev": "astro dev --port 3000",
|
"dev": "astro dev --port 3000",
|
||||||
"start": "astro preview --port 3000",
|
"start": "astro preview --port 3000",
|
||||||
"build": "astro check && astro build",
|
"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",
|
"preview": "astro preview --port 3000",
|
||||||
"wrangler": "wrangler",
|
"wrangler": "wrangler",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
|
|
|
@ -2,7 +2,7 @@ name = "zenbrowser-www"
|
||||||
pages_build_output_dir = "./dist"
|
pages_build_output_dir = "./dist"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
command = "bun run build"
|
command = "bun run build:cf"
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
production = {}
|
production = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue