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>
61 lines
1.9 KiB
JavaScript
61 lines
1.9 KiB
JavaScript
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 don’t 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,
|
||
},
|
||
},
|
||
}
|
||
);
|