forked from thomasKn/astro-shopify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
43 lines (41 loc) · 1.02 KB
/
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
40
41
42
43
import { defineConfig } from "astro/config";
import vercel from "@astrojs/vercel/serverless";
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
import svelte from "@astrojs/svelte";
import storyblok from '@storyblok/astro';
import basicSsl from '@vitejs/plugin-basic-ssl'
import { loadEnv } from 'vite';
const env = loadEnv("", process.cwd(), 'STORYBLOK');
export default defineConfig({
output: "server",
adapter: vercel(),
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
svelte(),
storyblok({
accessToken: env.STORYBLOK_TOKEN,
components: {
page: "storyblok/Page",
feature: "storyblok/Feature",
ticker: "storyblok/Ticker",
teaser: "storyblok/Teaser",
grid: "storyblok/Grid",
},
apiOptions: {
// Choose your Storyblok space region
region: 'eu', // optional, or 'eu' (default)
},
})
],
vite: {
plugins: [basicSsl()],
server: {
https:true,
}
}
});