feat: add page functions proxy to make response faster (#234)

This commit is contained in:
Dream Hunter
2024-05-14 12:43:03 +08:00
committed by GitHub
parent 9de2d23be1
commit ea4ce9bf63
8 changed files with 94 additions and 0 deletions

2
frontend/.env.pages Normal file
View File

@@ -0,0 +1,2 @@
VITE_API_BASE=
VITE_CF_WEB_ANALY_TOKEN=

2
frontend/.gitignore vendored
View File

@@ -28,5 +28,7 @@ coverage
*.sw?
.env.*
!.env.example
!.env.pages
*-dist/
components.d.ts

View File

@@ -7,6 +7,7 @@
"dev": "vite",
"build": "vite build -m prod --emptyOutDir",
"build:release": "vite build -m example --emptyOutDir",
"build:pages": "vite build -m pages --emptyOutDir",
"preview": "vite preview",
"deploy:preview": "npm run build && wrangler pages deploy ./dist --branch preview",
"deploy": "npm run build && wrangler pages deploy ./dist --branch production"