🔀 How to - @kitql/handles
đź’ˇ
KitQL itself is not a library, it’s “nothing” but a collection of standalone libraries.
A set of handles that can help 🫵!
Installation
npm i -D @kitql/handles
Configuration
src/hooks.server.ts
import { handleProxies } from '@kitql/handles'
import { sequence } from '@sveltejs/kit/hooks'
export const handle = sequence(
// Proxy requests through kit
handleProxies({ proxies: [{ from: '/proxy', to: 'http://my.super.website/graphql' }] })
)
This this, customers will never see the url http://my.super.website/graphql
.