mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-14 13:08:06 +01:00
29 lines
712 B
TypeScript
29 lines
712 B
TypeScript
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
import { defineConfig } from "astro/config";
|
|
import preact from "@astrojs/preact";
|
|
import sitemap from "@astrojs/sitemap";
|
|
import tailwind from "@astrojs/tailwind";
|
|
import cloudflare from "@astrojs/cloudflare";
|
|
|
|
import { CONFIG } from "./src/config";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: CONFIG.origin,
|
|
integrations: [sitemap(), tailwind(), preact()],
|
|
output: "server",
|
|
adapter: cloudflare(),
|
|
security: {
|
|
checkOrigin: true,
|
|
},
|
|
vite: {
|
|
resolve: {
|
|
alias: {
|
|
"~": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
},
|
|
});
|