mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-23 00:41:06 +01:00
25 lines
640 B
TypeScript
25 lines
640 B
TypeScript
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
import { defineConfig } from "astro/config";
|
|
import sitemap from "@astrojs/sitemap";
|
|
import tailwind from "@astrojs/tailwind";
|
|
import cloudflare from "@astrojs/cloudflare";
|
|
import auth from "auth-astro";
|
|
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(), auth()],
|
|
output: "server",
|
|
adapter: cloudflare(),
|
|
vite: {
|
|
resolve: {
|
|
alias: {
|
|
"~": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
},
|
|
});
|