-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
33 lines (31 loc) · 987 Bytes
/
astro.config.mjs
File metadata and controls
33 lines (31 loc) · 987 Bytes
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
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import sanity from "@sanity/astro";
import netlify from '@astrojs/netlify';
import dotenv from 'dotenv';
import partytown from '@astrojs/partytown'
dotenv.config();
const projectId = import.meta.env.PUBLIC_SANITY_PROJECT_ID ?? process.env.PUBLIC_SANITY_PROJECT_ID
const dataset = import.meta.env.PUBLIC_SANITY_DATASET ?? process.env.PUBLIC_SANITY_DATASET
const studioUrl = import.meta.env.PUBLIC_SANITY_STUDIO_URL ?? process.env.PUBLIC_SANITY_STUDIO_URL
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), react(), sanity({
projectId,
dataset,
// Set useCdn to false if you're building statically.
useCdn: true,
studioBasePath: studioUrl
}),
partytown({
config: {
forward: ["dataLayer.push"],
},
})],
devToolbar: {
enabled: false
},
output: 'server',
adapter: netlify()
});