martials.no/astro.config.mjs
Martin Berg Alstad 83f018c3b8 Initial commit
2024-09-25 22:20:54 +02:00

22 lines
554 B
JavaScript

// @ts-check
import { defineConfig } from "astro/config"
import tailwind from "@astrojs/tailwind"
import sitemap from "@astrojs/sitemap"
import { loadEnv } from "vite"
import mdx from "@astrojs/mdx"
import svelte from "@astrojs/svelte"
const { url } = process.env.URL
? loadEnv(process.env.URL, process.cwd(), "")
: { url: "http://localhost:3000" }
// https://astro.build/config
export default defineConfig({
site: url,
i18n: {
defaultLocale: "nb",
locales: ["nb", "en"]
},
integrations: [tailwind(), sitemap(), mdx(), svelte()]
})