Files
website-enchun-mgr/apps/frontend/astro.config.mjs
pkupuk e7344fa7fe fix(frontend): disable Cloudflare KV session persistence
Session KV binding was causing deployment error. Since the project
doesn't use sessions, disable persistence to avoid the binding requirement.
2026-03-11 21:35:51 +08:00

38 lines
773 B
JavaScript

// @ts-check
import { defineConfig } from "astro/config";
import cloudflare from "@astrojs/cloudflare";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: cloudflare({
imageService: 'passthrough',
platformProxy: {
enabled: true,
configPath: './wrangler.jsonc',
},
session: {
persistence: 'none',
},
}),
vite: {
plugins: [tailwindcss()],
resolve: {
alias: {
'@': path.resolve('./src'),
},
},
server: {
proxy: {
'/api': {
target: 'https://enchun-admin.anlstudio.cc',
changeOrigin: true,
secure: true,
},
},
},
},
});