This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-next/config / WithEnginexRewrites

WithEnginexRewrites<C> ​

WithEnginexRewrites<C> = "rewrites" extends keyof C ? NonNullable<C["rewrites" & keyof C]> extends (...args) => infer R ? Awaited<R> : EnginexRewrites : EnginexRewrite[]

What the returned rewrites() resolves to: the same format as the app config's rewrites (the gateway's go into it) or, without rewrites in the config, a list of EnginexRewrite.

Type Parameters ​

C ​

C