New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(client, cli): implement --data-proxy [DPGA, 1] #13561
Conversation
ea8923b
to
d2ed17c
Compare
d2ed17c
to
8c77b80
Compare
3b025a7
to
400e01a
Compare
2ba819c
to
53f6f82
Compare
ca4e7c2
to
4926413
Compare
4926413
to
d4e411a
Compare
packages/sdk/src/get-generators/utils/check-feature-flags/checkFeatureFlags.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scroll through review: All changes make sense and nothing pops out as problematic.
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com> Co-authored-by: Alexey Orlenko <alex@aqrln.net>
> | ||
|
||
// our implementation handles less | ||
export type RequestOptions = O.Patch<{ headers?: { [k: string]: string }; body?: string }, RequestInit> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: it seems this change prevents TypeScript to properly build engine-core
, as it affects the buildOptions
function.
Temporary solution:
function buildOptions(options: RequestOptions): Https.RequestOptions {
return {
// @ts-ignore
method: options.method,
headers: buildHeaders(options),
}
}
This PR replaces the
PRISMA_CLIENT_ENGINE_TYPE=dataproxy
mechanism in favor of--data-proxy
via the cli.Next #13512
https://github.com/orgs/prisma/projects/70#card-82299232