File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ const sanityWriteClient = createClient({
12
12
dataset : process . env . NEXT_PUBLIC_SANITY_DATASET ,
13
13
token : process . env . SANITY_API_WRITE_TOKEN ,
14
14
apiVersion : '2022-03-07' ,
15
- perspective : 'raw'
15
+ perspective : 'published' ,
16
+ useCdn : false
16
17
} ) ;
17
18
18
19
export async function POST ( request : Request ) {
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ const sanityWriteClient = createClient({
12
12
dataset : process . env . NEXT_PUBLIC_SANITY_DATASET ,
13
13
token : process . env . SANITY_API_WRITE_TOKEN ,
14
14
apiVersion : '2022-03-07' ,
15
- perspective : 'raw'
15
+ perspective : 'published' ,
16
+ useCdn : false
16
17
} ) ;
17
18
18
19
export async function POST ( request : Request ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ const sanityWriteClient = createClient({
7
7
dataset : process . env . NEXT_PUBLIC_SANITY_DATASET ,
8
8
token : process . env . SANITY_API_WRITE_TOKEN ,
9
9
apiVersion : '2022-03-07' ,
10
- perspective : 'raw'
10
+ perspective : 'published' ,
11
+ useCdn : false
11
12
} ) ;
12
13
13
14
export async function GET ( request : NextRequest ) {
You can’t perform that action at this time.
0 commit comments