Compare commits
6 Commits
001-users-
...
acc23b13b6
| Author | SHA1 | Date | |
|---|---|---|---|
| acc23b13b6 | |||
| 1d84107147 | |||
| f17523fd91 | |||
| e7344fa7fe | |||
| b5a8e9a1e6 | |||
| 03760b23a5 |
1
apps/frontend/.assetsignore
Normal file
1
apps/frontend/.assetsignore
Normal file
@@ -0,0 +1 @@
|
||||
_worker.js
|
||||
@@ -13,6 +13,9 @@ export default defineConfig({
|
||||
enabled: true,
|
||||
configPath: './wrangler.jsonc',
|
||||
},
|
||||
session: {
|
||||
persistence: 'none',
|
||||
},
|
||||
}),
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "astro dev --host --port 4321",
|
||||
"dev:pages": "wrangler pages dev --compatibility-date=2024-01-01",
|
||||
"build": "astro build",
|
||||
"build": "astro build && cp .assetsignore dist/",
|
||||
"preview": "astro preview",
|
||||
"check": "astro check",
|
||||
"typecheck": "astro check",
|
||||
|
||||
@@ -1,20 +1,33 @@
|
||||
{
|
||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||
"name": "enchun-frontend",
|
||||
"name": "website-enchun-mgr",
|
||||
"main": "./dist/_worker.js/index.js",
|
||||
"compatibility_date": "2025-01-19",
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
"assets": {
|
||||
"directory": "./dist"
|
||||
"directory": "./dist",
|
||||
"binding": "ASSETS"
|
||||
},
|
||||
"kv_namespaces": [
|
||||
{
|
||||
"binding": "SESSION",
|
||||
"id": "0de94ad20be24add94c1f8fe9c4a0440"
|
||||
}
|
||||
],
|
||||
"vars": {
|
||||
"PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc"
|
||||
},
|
||||
"env": {
|
||||
"production": {
|
||||
"name": "enchun-frontend-production",
|
||||
"name": "website-enchun-mgr-production",
|
||||
"kv_namespaces": [
|
||||
{
|
||||
"binding": "SESSION",
|
||||
"id": "0de94ad20be24add94c1f8fe9c4a0440"
|
||||
}
|
||||
],
|
||||
"vars": {
|
||||
"PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc"
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
name = "enchun-frontend"
|
||||
compatibility_date = "2024-01-01"
|
||||
pages_build_output_dir = "dist"
|
||||
|
||||
[vars]
|
||||
PAYLOAD_CMS_URL = "https://enchun-admin.anlstudio.cc"
|
||||
|
||||
[env.production.vars]
|
||||
PAYLOAD_CMS_URL = "https://enchun-admin.anlstudio.cc"
|
||||
Reference in New Issue
Block a user