Skip to content

Commit 0b0adb8

Browse files
committed
Merge branch 'main' into dev: resolve conflicts preserving Astro SSR and Sanity 6 architecture
2 parents 3a7e401 + 648523f commit 0b0adb8

5 files changed

Lines changed: 24744 additions & 4 deletions

File tree

‎apps/sanity/extract.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@
572572
}
573573
},
574574
{
575+
<<<<<<< HEAD
575576
"name": "syndication",
576577
"type": "document",
577578
"attributes": {
@@ -703,6 +704,8 @@
703704
}
704705
},
705706
{
707+
=======
708+
>>>>>>> origin/main
706709
"type": "type",
707710
"name": "page.reference",
708711
"value": {
@@ -13642,6 +13645,7 @@
1364213645
}
1364313646
},
1364413647
{
13648+
<<<<<<< HEAD
1364513649
"type": "type",
1364613650
"name": "media.folder.reference",
1364713651
"value": {
@@ -13724,6 +13728,8 @@
1372413728
}
1372513729
},
1372613730
{
13731+
=======
13732+
>>>>>>> origin/main
1372713733
"name": "media.tag",
1372813734
"type": "document",
1372913735
"attributes": {

‎apps/web/sanity.cli.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineCliConfig } from "sanity/cli";
2+
3+
/** Minimal CLI config for Sanity typegen in the Next.js app (Studio lives in apps/sanity). */
4+
export default defineCliConfig({
5+
api: {
6+
projectId: process.env.SANITY_STUDIO_PROJECT_ID || "hfh83o0w",
7+
dataset: process.env.SANITY_STUDIO_DATASET || "production",
8+
},
9+
// Replaces the deprecated sanity-typegen.json. The schema is extracted in
10+
// apps/sanity (sanity schema extract --> ../sanity/extract.json).
11+
typegen: {
12+
path: "./**/*.{ts,tsx,js,jsx}",
13+
schema: "../sanity/extract.json",
14+
generates: "./sanity/types.ts",
15+
},
16+
});

0 commit comments

Comments
 (0)