generated from gio-del/Astro-Theme-Astroway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
47 lines (45 loc) · 1.39 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
44
45
46
47
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import storyblok from '@storyblok/astro';
import { loadEnv } from 'vite';
import react from "@astrojs/react";
import robotsTxt from "astro-robots-txt";
import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis';
import basicSsl from '@vitejs/plugin-basic-ssl';
const env = loadEnv("", process.cwd(), 'STORYBLOK');
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel/serverless";
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [basicSsl()],
server: {
https: true
}
},
markdown: {
rehypePlugins: [rehypeAccessibleEmojis]
},
site: 'https://astro-portfolio-template.pages.dev',
integrations: [
storyblok({
accessToken: env.STORYBLOK_TOKEN,
components: {
codeBlock: 'storyblok/CodeBlock',
blogPost: 'storyblok/BlogPost',
blogPostList: 'storyblok/BlogPostList',
page: 'storyblok/Page',
feature: "storyblok/Feature",
grid: "storyblok/Grid",
teaser: "storyblok/Teaser",
thoughtPost: 'storyblok/ThoughtPost'
// Add your components here
},
apiOptions: {
// Choose your Storyblok space region
region: 'us' // optional, or 'eu' (default)
}
}), tailwind(), react(), robotsTxt(), sitemap()],
output: "server",
adapter: vercel()
});