-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
99 lines (97 loc) · 2.04 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { defineConfig } from "astro/config";
import { loadEnv } from "vite";
import astroBreakpoints from "astro-devtool-breakpoints";
import basicSsl from "@vitejs/plugin-basic-ssl";
import icon from "astro-icon";
import react from "@astrojs/react";
import storyblok from "@storyblok/astro";
import tailwind from "@astrojs/tailwind";
const env = loadEnv("", process.cwd(), "STORYBLOK");
// https://astro.build/config
export default defineConfig({
output: "static",
site: "https://www.ryanfurrer.com",
prefetch: {
prefetchAll: true,
defaultStrategy: "hover",
},
markdown: {
shikiConfig: {
theme: "github-dark",
wrap: true,
langs: [
"astro",
"css",
"docker",
"dockerfile",
"elixer",
"gql",
"graphql",
"html",
"javascript",
"js",
"json",
"jsx",
"less",
"liquid",
"lua",
"markdown",
"md",
"nginx",
"php",
"postcss",
"powershell",
"ps",
"py",
"python",
"rb",
"rs",
"ruby",
"rust",
"sass",
"scss",
"sql",
"svelte",
"swift",
"toml",
"ts",
"tsx",
"typescript",
"vue-html",
"vue",
"vue",
"yaml",
"yml",
],
},
},
vite: {
plugins: [basicSsl()],
server: {
open: "/src/pages/index.astro",
https: true,
},
},
integrations: [
astroBreakpoints(),
icon(),
react(),
tailwind({
applyBaseStyles: false,
}),
storyblok({
accessToken: "OvG6RltzzmQpZ8WXKtSeEwtt",
components: {
// Add your components here
blogPost: "storyblok/BlogPost",
blogPostList: "storyblok/BlogPostList",
blogPostListFeatured: "storyblok/BlogPostListFeatured",
page: "storyblok/Page",
},
apiOptions: {
// Choose your Storyblok space region
region: "us", // optional, or 'eu' (default)
},
}),
],
});