Add TypeScript strict mode and typecheck tasks to monorepo infrastructure. Fix E2E test @payload-config alias and frontend TypeScript errors. - Add tsconfig.json to backend with strict mode and path aliases - Add typecheck task to Turborepo and all packages - Fix @payload-config alias for E2E tests and dev server - Add setToken method to AuthService for middleware use - Fix implicit any types in Footer.astro and Header.astro - Remove invalid typescript config from astro.config.mjs
29 lines
612 B
JavaScript
29 lines
612 B
JavaScript
// @ts-check
|
|
import { defineConfig } from "astro/config";
|
|
import cloudflare from "@astrojs/cloudflare";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: "server",
|
|
adapter: cloudflare({
|
|
imageService: 'passthrough',
|
|
platformProxy: {
|
|
enabled: true,
|
|
configPath: './wrangler.jsonc',
|
|
},
|
|
}),
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://enchun-admin.anlstudio.cc',
|
|
changeOrigin: true,
|
|
secure: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|