mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-10 03:08:06 +01:00
47 lines
811 B
TypeScript
47 lines
811 B
TypeScript
|
import path from "path";
|
||
|
import { fileURLToPath } from "url";
|
||
|
|
||
|
import { defineConfig } from "astro/config";
|
||
|
|
||
|
import sitemap from "@astrojs/sitemap";
|
||
|
import robotsTxt from "astro-robots-txt";
|
||
|
import compress from "astro-compress";
|
||
|
import tailwind from "@astrojs/tailwind";
|
||
|
|
||
|
import { CONFIG } from "./src/config";
|
||
|
|
||
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||
|
|
||
|
export default defineConfig({
|
||
|
site: CONFIG.origin,
|
||
|
base: "/",
|
||
|
trailingSlash: "always",
|
||
|
output: "static",
|
||
|
integrations: [
|
||
|
sitemap(),
|
||
|
robotsTxt({
|
||
|
policy: [
|
||
|
{
|
||
|
userAgent: "*",
|
||
|
},
|
||
|
],
|
||
|
sitemap: true,
|
||
|
}),
|
||
|
compress({
|
||
|
css: true,
|
||
|
html: true,
|
||
|
img: true,
|
||
|
js: true,
|
||
|
svg: true,
|
||
|
}),
|
||
|
tailwind(),
|
||
|
],
|
||
|
vite: {
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
"~": path.resolve(__dirname, "./src"),
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|