Reference / @getenginex/sdk-next/config / WithEnginexRewrites
WithEnginexRewrites<C>
WithEnginexRewrites<
C> ="rewrites"extends keyofC?NonNullable<C["rewrites"& keyofC]> 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