-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
39 lines (35 loc) · 943 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from "astro/config";
// storyblok
import storyblok from "@storyblok/astro";
// vite
import { loadEnv } from "vite";
// https://astro.build/config
import svelte from "@astrojs/svelte";
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
import image from "@astrojs/image";
import sitemap from "@astrojs/sitemap";
const env = loadEnv("", process.cwd(), "STORYBLOK");
// https://astro.build/config
// https://astro.build/config
export default defineConfig({
site: "https://www.micro-forge.com",
integrations: [
svelte(),
tailwind(),
image(),
storyblok({
accessToken: env.STORYBLOK_TOKEN,
components: {
blogPost: "storyblok/BlogPost",
Product: "storyblok/Product",
productGroup: "storyblok/ProductGroup",
},
apiOptions: {
// Choose your Storyblok space region
region: "us",
},
}),
sitemap(),
],
});