From 3f472fb023dfb2d04d1bfa5f6da1a6cfd863101d Mon Sep 17 00:00:00 2001 From: joaodunas Date: Sun, 21 Dec 2025 13:18:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20FIX:=20Updated=20deployment=20co?= =?UTF-8?q?mmand=20in=20package.json=20and=20restructured=20wrangler.jsonc?= =?UTF-8?q?=20for=20asset=20configuration=20and=20compatibility=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- wrangler.jsonc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0a65ed7..4e17d71 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build": "tsc --noEmit && vite build", "lint": "tsc && eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "deploy": "npm run build && npx wrangler pages deploy", + "deploy": "npm run build && npx wrangler deploy", "cf-typegen": "npx wrangler types" }, "dependencies": { diff --git a/wrangler.jsonc b/wrangler.jsonc index 866792f..c2b5099 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1,5 +1,8 @@ { "$schema": "node_modules/wrangler/config-schema.json", "name": "leakhub", - "pages_build_output_dir": "./dist", + // Workers Assets configuration - replaces Pages' pages_build_output_dir + "assets": { "directory": "./dist" }, + // Required compatibility date for Workers runtime features + "compatibility_date": "2025-06-05", }