mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
docs: add protocol to superjson link
This commit is contained in:
parent
dd8608b1cf
commit
cebfcb3dad
@ -452,7 +452,7 @@ const { data } = await useFetch('/api/bar')
|
|||||||
|
|
||||||
Nuxt does not currently support an alternative serializer to `JSON.stringify`. However, you can return your payload as a normal string and utilize the `toJSON` method to maintain type safety.
|
Nuxt does not currently support an alternative serializer to `JSON.stringify`. However, you can return your payload as a normal string and utilize the `toJSON` method to maintain type safety.
|
||||||
|
|
||||||
In the example below, we use [superjson](github.com/blitz-js/superjson) as our serializer.
|
In the example below, we use [superjson](https://github.com/blitz-js/superjson) as our serializer.
|
||||||
|
|
||||||
```ts [server/api/superjson.ts]
|
```ts [server/api/superjson.ts]
|
||||||
import superjson from 'superjson'
|
import superjson from 'superjson'
|
||||||
|
Loading…
Reference in New Issue
Block a user