-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
38 lines (35 loc) · 992 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
36
37
38
import image from '@astrojs/image';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import sanity from '@sanity/astro';
import { defineConfig } from 'astro/config';
import { loadEnv } from 'vite';
const {
PUBLIC_SANITY_STUDIO_PROJECT_ID,
PUBLIC_SANITY_STUDIO_DATASET,
PUBLIC_SANITY_PROJECT_ID,
PUBLIC_SANITY_DATASET,
} = loadEnv(import.meta.env.MODE, process.cwd(), '');
const projectId = PUBLIC_SANITY_STUDIO_PROJECT_ID || PUBLIC_SANITY_PROJECT_ID;
const dataset = PUBLIC_SANITY_STUDIO_DATASET || PUBLIC_SANITY_DATASET;
// https://astro.build/config
export default defineConfig({
site: 'https://ismiabbas.site/',
integrations: [
mdx(),
sitemap(),
tailwind(),
react(),
image(),
partytown(),
sanity({
projectId,
dataset,
useCdn: false,
studioBasePath: '/studio',
}),
],
});