-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
40 lines (38 loc) · 1.13 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
import { defineConfig } from 'astro/config';
import { loadEnv } from "vite";
const {
PUBLIC_SANITY_STUDIO_PROJECT_ID,
PUBLIC_SANITY_STUDIO_DATASET
} = loadEnv(import.meta.env.MODE, process.cwd(), "");
import sanity from "@sanity/astro";
import react from "@astrojs/react";
import netlify from "@astrojs/netlify";
import tailwind from "@astrojs/tailwind";
import liciousI18n from "@astrolicious/i18n";
import icon from "astro-icon";
const projectId = PUBLIC_SANITY_STUDIO_PROJECT_ID;
const dataset = PUBLIC_SANITY_STUDIO_DATASET;
// https://astro.build/config
export default defineConfig({
output: "server",
integrations: [sanity({
projectId: projectId,
dataset: dataset,
studioBasePath: "/admin",
useCdn: true,
// `false` if you want to ensure fresh data
apiVersion: "2024-03-18" // Set to date of setup to use the latest API version
}), react() // Required for Sanity Studio
, tailwind(), liciousI18n({
defaultLocale: "en",
locales: ["en", "jp"],
strategy: "prefixExceptDefault",
client: {
data: true
}
}), icon()],
adapter: netlify(),
image: {
domains: ["cdn.sanity.io"]
}
});