martials.no/astro.config.mjs

22 lines
554 B
JavaScript
Raw Normal View History

2024-09-08 13:14:02 +02:00
// @ts-check
2024-09-25 22:20:47 +02:00
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" }
2024-09-08 13:14:02 +02:00
// https://astro.build/config
2024-09-25 22:20:47 +02:00
export default defineConfig({
site: url,
i18n: {
defaultLocale: "nb",
locales: ["nb", "en"]
},
integrations: [tailwind(), sitemap(), mdx(), svelte()]
})