-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
35 lines (34 loc) · 884 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
import sitemap from "@astrojs/sitemap"
import tailwind from "@astrojs/tailwind"
import vercel from "@astrojs/vercel/serverless"
import icon from "astro-icon"
import { defineConfig } from "astro/config"
import { mainUrl } from "./src/site"
// https://astro.build/config
export default defineConfig({
server: {
host: true, // expose server to network
},
integrations: [tailwind(), sitemap(), icon()],
image: {
domains: [
"ik.imagekit.io",
"swiftshift.app",
"1.gravatar.com/avatar",
"vimcolors.org",
"raycast.com",
],
},
build: {
inlineStylesheets: "always",
},
compressHTML: true,
prefetch: true,
output: "server",
adapter: vercel(),
site: mainUrl,
// redirects: {
// External URLs are not supported in Astro https://github.com/withastro/roadmap/discussions/847
// I'm using ./vercel.json for that
// },
})