Files
blog/astro.config.mjs
Gabriel Vidal f621184399 chore: migrate hosting to raspy2 (blog.dev.gabvdl.xyz) + self-hosted Matomo
Now served by zipgo on raspy2 at https://blog.dev.gabvdl.xyz (off Vercel). Point
the Astro `site` (canonical/sitemap) at the new domain and add the self-hosted
Matomo tracker (analytics.gabvdl.xyz, idSite=1 / gabvdl.xyz).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 18:38:00 +02:00

61 lines
1.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import path, { dirname } from "path";
import { fileURLToPath } from "url";
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
// @ts-check
// https://astro.build/config
// https://astro.build/config
// https://astro.build/config
export default defineConfig(
/** @type {import('astro').AstroUserConfig} */ {
// root: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
// outDir: './dist', // When running `astro build`, path to final static output
// publicDir: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that dont need processing.
output: "static",
site: "https://blog.dev.gabvdl.xyz",
// Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
server: {
// port: 3000, // The port to run the dev server on.
},
integrations: [
mdx(),
svelte(),
tailwind({
config: {
applyBaseStyles: false,
},
}),
sitemap(),
react(),
],
vite: {
plugins: [],
resolve: {
alias: {
$: path.resolve(__dirname, "./src"),
},
},
optimizeDeps: {
allowNodeBuiltins: true,
},
},
}
);