70bf21e064
Handle Changesets / Handle Changesets (push) Waiting to run
Semgrep OSS scan / semgrep-oss (push) Waiting to run
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
14 lines
571 B
TypeScript
14 lines
571 B
TypeScript
import { getPlatformProxy as originalGetPlatformProxy } from "wrangler";
|
|
import type { GetPlatformProxyOptions } from "wrangler";
|
|
|
|
// Here we wrap the actual original getPlatformProxy function and disable its persistance, this is to make sure
|
|
// that we don't implement any persistance during these tests (which would add unnecessary extra complexity)
|
|
export function getPlatformProxy<T>(
|
|
options: Omit<GetPlatformProxyOptions, "persist"> = {}
|
|
): ReturnType<typeof originalGetPlatformProxy<T>> {
|
|
return originalGetPlatformProxy({
|
|
...options,
|
|
persist: false,
|
|
});
|
|
}
|