This commit is contained in:
Morten Olsen
2024-03-30 20:53:01 +01:00
commit 98e39a54cc
94 changed files with 11654 additions and 0 deletions

29
astro.config.ts Normal file
View File

@@ -0,0 +1,29 @@
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import icon from "astro-icon";
import compress from "astro-compress";
import robotsTxt from 'astro-robots-txt';
const getSiteInfo = () => {
const siteUrl = process.env.SITE_URL;
if (!siteUrl) {
return {};
}
const url = new URL(siteUrl);
return {
site: `${url.protocol}//${url.host}`,
base: url.pathname
};
};
// https://astro.build/config
export default defineConfig({
...getSiteInfo(),
output: 'static',
integrations: [mdx(), sitemap(), icon(), compress(), robotsTxt()],
vite: {
build: {
assetsInlineLimit: 1024 * 10
}
}
});