22 lines
554 B
JavaScript
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()]
|
|
})
|