-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
47 lines (41 loc) · 1.28 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 mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import juno from "@junobuild/vite-plugin";
import tailwind from "@astrojs/tailwind";
import sanity from "@sanity/astro";
import react from "@astrojs/react";
import { loadEnv } from "vite";
export const { SANITY_STUDIO_PROJECT_ID, SANITY_STUDIO_DATASET } = loadEnv(
process.env.NODE_ENV || "development",
process.cwd(),
"",
);
// https://astro.build/config
export default defineConfig({
site: "https://<your-satellite-id>.icp0.io", // or your custom domain
output: "static",
integrations: [
mdx(),
sitemap(),
tailwind(),
sanity({
projectId: SANITY_STUDIO_PROJECT_ID,
dataset: SANITY_STUDIO_DATASET,
// Set useCdn to false if you're building statically.
useCdn: false,
// We don't set this here to avoid SSR issues.
// See https://github.com/sanity-io/sanity-astro/issues/232.
// We rather compile the Studio manually and place it in the dist/studio folder before deploying.
// See https://www.sanity.io/docs/deployment#ed3cd78ea4eb (the "Self-hosting the Studio" section).
// studioBasePath: "/studio"
}),
react(),
],
vite: {
plugins: [juno()],
},
devToolbar: {
enabled: false,
},
});