mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 15:54:13 +01:00
fix: mettre à jour la configuration de déploiement pour Cloudflare et ajuster les commandes de wrangler
This commit is contained in:
7
.github/workflows/cloudflare.yml
vendored
7
.github/workflows/cloudflare.yml
vendored
@@ -22,6 +22,11 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Setup Wrangler Types
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
command: types
|
||||
|
||||
- name: Build
|
||||
run: bun run build
|
||||
env:
|
||||
@@ -35,7 +40,7 @@ jobs:
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: deploy pages .output/public
|
||||
command: pages deploy
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
@@ -7,7 +7,7 @@
|
||||
"preview": "bun run build && wrangler pages dev",
|
||||
"postinstall": "nuxt prepare",
|
||||
"lint": "eslint .",
|
||||
"deploy": "bun run cf-typegen && bun run build && wrangler pages deploy .output/public",
|
||||
"deploy": "bun run cf-typegen && bun run build && wrangler pages deploy",
|
||||
"cf-typegen": "wrangler types"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "artsite",
|
||||
"compatibility_date": "2025-12-13",
|
||||
"pages_build_output_dir": ".output/public",
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user