File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -279,20 +279,7 @@ client.update<Content>({
279279})
280280` ` `
281281
282- ## Tips
283-
284- ### Separate API keys for read and write
285-
286- ` ` ` javascript
287- const readClient = createClient ({
288- serviceDomain: ' serviceDomain' ,
289- apiKey: ' readApiKey' ,
290- })
291- const writeClient = createClient ({
292- serviceDomain: ' serviceDomain' ,
293- apiKey: ' writeApiKey' ,
294- })
295- ` ` `
282+ ## CustomRequestInit
296283
297284### Next.js App Router
298285
@@ -330,6 +317,21 @@ setTimeout(() => {
330317}, 1000 )
331318` ` `
332319
320+ ## Tips
321+
322+ ### Separate API keys for read and write
323+
324+ ` ` ` javascript
325+ const readClient = createClient ({
326+ serviceDomain: ' serviceDomain' ,
327+ apiKey: ' readApiKey' ,
328+ })
329+ const writeClient = createClient ({
330+ serviceDomain: ' serviceDomain' ,
331+ apiKey: ' writeApiKey' ,
332+ })
333+ ` ` `
334+
333335
334336# LICENSE
335337
You can’t perform that action at this time.
0 commit comments