From ee93bf176e2aa6ae524d29d42a933b580193a6aa Mon Sep 17 00:00:00 2001 From: Ou Date: Thu, 3 Oct 2024 17:46:33 +0800 Subject: [PATCH] chore: udpate wrangler.toml --- package.json | 8 +++----- wrangler.toml | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8848e38..9b4ff90 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,10 @@ "packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b", "scripts": { "dev": "vite dev", - "build": "vite build", - "nitro": "nitro build", + "build": "vite build", "lint": "eslint .", "favicon": "tsx ./scripts/favicon.ts", - "test": "vitest", - "preview": "vite preview" + "test": "vitest" }, "dependencies": { "@dnd-kit/core": "^6.1.0", @@ -49,10 +47,10 @@ "@vitejs/plugin-react-swc": "^3.7.0", "eslint": "^9.11.1", "eslint-plugin-react-hooks": "^5.1.0-rc-778e1ed2-20240926", - "ofetch": "^1.4.0", "eslint-plugin-react-refresh": "^0.4.12", "nitro-cloudflare-dev": "^0.1.6", "nitropack": "^2.9.7", + "ofetch": "^1.4.0", "tsx": "^4.19.1", "typescript": "^5.6.2", "typescript-eslint": "^8.7.0", diff --git a/wrangler.toml b/wrangler.toml index 0815e52..6f86c80 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,3 +1,7 @@ +name = "newsnow" +pages_build_output_dir = "dist/output/public" +compatibility_date = "2024-10-03" + [[d1_databases]] binding = "CACHE_DB" # i.e. available in your Worker on env.CACHE_DB database_name = "newsnow-cache"