2022-12-23 14:08:00 +01:00
|
|
|
import { defineConfig } from "astro/config";
|
2022-12-04 14:46:22 +01:00
|
|
|
|
|
|
|
import tailwind from "@astrojs/tailwind";
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
import compress from "astro-compress";
|
|
|
|
|
2023-06-04 18:46:31 +02:00
|
|
|
// https://astro.build/config
|
|
|
|
import preact from "@astrojs/preact";
|
|
|
|
|
2022-12-04 14:46:22 +01:00
|
|
|
// https://astro.build/config
|
|
|
|
import prefetch from "@astrojs/prefetch";
|
2023-01-02 17:34:19 +01:00
|
|
|
import robotsTxt from "astro-robots-txt";
|
2023-01-03 12:26:44 +01:00
|
|
|
import minify from "./astro-integrations/minify";
|
2022-12-04 14:46:22 +01:00
|
|
|
|
2023-06-02 20:16:23 +02:00
|
|
|
import { dirname, resolve } from "node:path";
|
|
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
2023-06-04 18:46:31 +02:00
|
|
|
// https://astro.build/config
|
|
|
|
|
2022-12-04 14:46:22 +01:00
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
2023-05-14 11:18:43 +02:00
|
|
|
site: "https://xhyrom.dev/",
|
|
|
|
integrations: [
|
|
|
|
tailwind(),
|
|
|
|
sitemap(),
|
|
|
|
compress({
|
|
|
|
svg: false,
|
|
|
|
html: false,
|
|
|
|
}),
|
|
|
|
prefetch(),
|
|
|
|
robotsTxt({
|
|
|
|
policy: [
|
|
|
|
{
|
|
|
|
userAgent: "*",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
sitemap: true,
|
|
|
|
}),
|
|
|
|
minify(),
|
2023-06-04 18:46:31 +02:00
|
|
|
preact(),
|
2023-05-14 11:18:43 +02:00
|
|
|
],
|
2023-06-02 20:16:23 +02:00
|
|
|
vite: {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"~": resolve(__dirname, "./src"),
|
2023-06-03 17:34:56 +02:00
|
|
|
"@docs": resolve(__dirname, "./docs"),
|
2023-06-03 21:53:59 +02:00
|
|
|
"@blog": resolve(__dirname, "./blog"),
|
2023-06-02 20:16:23 +02:00
|
|
|
"@pages": resolve(__dirname, "./src/pages"),
|
|
|
|
"@assets": resolve(__dirname, "./src/assets"),
|
2023-06-03 17:03:40 +02:00
|
|
|
"@scripts": resolve(__dirname, "./src/scripts"),
|
2023-06-02 20:16:23 +02:00
|
|
|
"@layouts": resolve(__dirname, "./src/layouts"),
|
|
|
|
"@components": resolve(__dirname, "./src/components"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-12-23 14:08:00 +01:00
|
|
|
});
|