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,
|
enabled: true,
|
||||||
configPath: './wrangler.jsonc',
|
configPath: './wrangler.jsonc',
|
||||||
},
|
},
|
||||||
|
session: {
|
||||||
|
persistence: 'none',
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev --host --port 4321",
|
"dev": "astro dev --host --port 4321",
|
||||||
"dev:pages": "wrangler pages dev --compatibility-date=2024-01-01",
|
"dev:pages": "wrangler pages dev --compatibility-date=2024-01-01",
|
||||||
"build": "astro build",
|
"build": "astro build && cp .assetsignore dist/",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"check": "astro check",
|
"check": "astro check",
|
||||||
"typecheck": "astro check",
|
"typecheck": "astro check",
|
||||||
|
|||||||
@@ -1,20 +1,33 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||||
"name": "enchun-frontend",
|
"name": "website-enchun-mgr",
|
||||||
"main": "./dist/_worker.js/index.js",
|
"main": "./dist/_worker.js/index.js",
|
||||||
"compatibility_date": "2025-01-19",
|
"compatibility_date": "2025-01-19",
|
||||||
"compatibility_flags": [
|
"compatibility_flags": [
|
||||||
"nodejs_compat"
|
"nodejs_compat"
|
||||||
],
|
],
|
||||||
"assets": {
|
"assets": {
|
||||||
"directory": "./dist"
|
"directory": "./dist",
|
||||||
|
"binding": "ASSETS"
|
||||||
},
|
},
|
||||||
|
"kv_namespaces": [
|
||||||
|
{
|
||||||
|
"binding": "SESSION",
|
||||||
|
"id": "0de94ad20be24add94c1f8fe9c4a0440"
|
||||||
|
}
|
||||||
|
],
|
||||||
"vars": {
|
"vars": {
|
||||||
"PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc"
|
"PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"production": {
|
"production": {
|
||||||
"name": "enchun-frontend-production",
|
"name": "website-enchun-mgr-production",
|
||||||
|
"kv_namespaces": [
|
||||||
|
{
|
||||||
|
"binding": "SESSION",
|
||||||
|
"id": "0de94ad20be24add94c1f8fe9c4a0440"
|
||||||
|
}
|
||||||
|
],
|
||||||
"vars": {
|
"vars": {
|
||||||
"PAYLOAD_CMS_URL": "https://enchun-admin.anlstudio.cc"
|
"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