Skip to content
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

Improve the DX for enabling the data proxy #12904

Closed
matthewmueller opened this issue Apr 20, 2022 · 0 comments
Closed

Improve the DX for enabling the data proxy #12904

matthewmueller opened this issue Apr 20, 2022 · 0 comments
Labels
kind/improvement An improvement to existing feature and code. team/client Issue for team Client. team/psl-wg team/schema Issue for team Schema. tech/typescript Issue for tech TypeScript. topic: data proxy topic: dx topic: prisma-client
Milestone

Comments

@matthewmueller
Copy link
Contributor

Problem

We currently use the PRISMA_CLIENT_ENGINE_TYPE="dataproxy" environment variable to generate a proxy-enabled Prisma Client.

The problem with PRISMA_CLIENT_ENGINE_TYPE is that it's verbose and undiscoverable. We made this decision as a quick hack to get ready for Serverless Conference.

Suggested solution

We could have it be npx prisma generate --proxy for example.

Alternatives

Some other options in this internal Slack Thread

@matthewmueller matthewmueller added kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. team/client Issue for team Client. topic: data proxy labels Apr 20, 2022
@millsp millsp added this to the 3.15.0 milestone Jun 7, 2022
@millsp millsp closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code. team/client Issue for team Client. team/psl-wg team/schema Issue for team Schema. tech/typescript Issue for tech TypeScript. topic: data proxy topic: dx topic: prisma-client
Projects
None yet
Development

No branches or pull requests

4 participants