nix-hamburg.astro.nix/astro.config.mjs

35 lines
795 B
JavaScript
Raw Permalink Normal View History

2023-04-07 22:32:14 +02:00
import path from 'path';
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
2023-04-07 16:32:36 +02:00
import image from "@astrojs/image";
2023-04-07 22:32:14 +02:00
import robotsTxt from 'astro-robots-txt';
import sitemap from '@astrojs/sitemap';
2023-04-07 16:32:36 +02:00
2023-04-07 22:32:14 +02:00
const mkPath = (name) => path.resolve(`./src/${name}`);
const external = ['svgo'];
const alias = {
'@assets': mkPath('assets'),
'@components': mkPath('components'),
'@content': mkPath('content'),
'@layouts': mkPath('layouts'),
'@pages': mkPath('pages'),
'@utils': mkPath('utils'),
};
2023-04-07 16:32:36 +02:00
export default defineConfig({
2023-04-08 14:01:08 +02:00
site: "https://nix-hh.de",
2023-04-07 16:32:36 +02:00
integrations: [
mdx(),
2023-04-07 22:32:14 +02:00
tailwind(),
image(),
2023-04-07 16:32:36 +02:00
sitemap(),
2023-04-07 22:32:14 +02:00
robotsTxt(),
2023-04-07 16:32:36 +02:00
],
2023-04-07 22:32:14 +02:00
server: { port: 3001 },
vite: {
ssr: { external },
resolve: { alias },
},
2023-04-07 16:32:36 +02:00
});