Compare commits

...
Author SHA1 Message Date
cloudflare-workers-and-pages[bot] 35eb6a936a Add Cloudflare Workers configuration 2026-04-12 11:37:46 +00:00
5 changed files with 1475 additions and 7 deletions

No files matched your search

+7
View File
@@ -22,3 +22,10 @@ dist-ssr
*.njsproj
*.sln
*.sw?
# wrangler files
.wrangler
.dev.vars*
!.dev.vars.example
.env*
!.env.example
+1442 -1
View File
File diff suppressed because it is too large. Load diff
+5 -2
View File
@@ -6,7 +6,8 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview"
"preview": "npm run build && wrangler dev",
"deploy": "npm run build && wrangler deploy"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.2",
@@ -20,6 +21,7 @@
"vue": "^3.5.32"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.31.2",
"@types/node": "^24.12.2",
"@vitejs/plugin-vue": "^6.0.5",
"@vue/tsconfig": "^0.9.1",
@@ -29,6 +31,7 @@
"unplugin-icons": "^23.0.1",
"unplugin-vue-components": "^32.0.0",
"vite": "^8.0.4",
"vue-tsc": "^3.2.6"
"vue-tsc": "^3.2.6",
"wrangler": "^4.81.1"
}
}
+7 -4
View File
@@ -4,7 +4,11 @@ import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { cloudflare } from "@cloudflare/vite-plugin";
// https://vite.dev/config/
export default defineConfig({
@@ -12,6 +16,5 @@ export default defineConfig({
resolvers: [ElementPlusResolver()],
}), Components({
resolvers: [ElementPlusResolver()]
})
],
})
}), cloudflare()],
})
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "ipw-cn",
"compatibility_date": "2026-04-12",
"observability": {
"enabled": true
},
"assets": {
"not_found_handling": "single-page-application"
},
"compatibility_flags": [
"nodejs_compat"
]
}