You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A custom Client class that returns a singleton of a ky instance to be used in both client and server (I’m using Astro for both)
The class have a internal instance to be used in all requests, and a extend method that mutates this internal instance by calling ky.extend and setting the value
The server extends the Client instance to add custom headers
The headers are available automatically when using on the client side
Is this setup possible? If not, what would be an alternative?
The text was updated successfully, but these errors were encountered:
I have the following use case:
Is this setup possible? If not, what would be an alternative?
The text was updated successfully, but these errors were encountered: