Files
website-enchun-mgr/apps/frontend/astro.config.mjs
pkupuk 9c2181f743 feat(frontend): update pages, components and branding
Refresh Astro frontend implementation including new pages (Portfolio, Teams, Services), components, and styling updates.
2026-02-11 11:50:42 +08:00

35 lines
724 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',
},
}),
vite: {
plugins: [tailwindcss()],
resolve: {
alias: {
'@': path.resolve('./src'),
},
},
server: {
proxy: {
'/api': {
target: 'https://enchun-admin.anlstudio.cc',
changeOrigin: true,
secure: true,
},
},
},
},
});