Repository navigation
feat(prisma)!: resolve PrismaEnvironment on every request - #3122
Merged
Merged
Conversation
Contributor
|
Install the packages built from this commit: alchemypnpm install https://pkg.alchemy.run/alchemy/pr:3122:10fb6e8@alchemy.run (30)pnpm install https://pkg.alchemy.run/@alchemy.run/better-auth/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/git/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/drizzle/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/acme/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/archil/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/axiom/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/doppler/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/infisical/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/turso/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/daytona/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/planetscale/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/neon/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/prisma/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/hetzner/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/railway/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/fly/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/github/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/stripe/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/cloudflare/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/gcp/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/aws/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/domain/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/kubernetes/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/docker/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/redis/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/sql/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/cloudflare-runtime/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/frontend-frameworks/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/node-utils/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@alchemy.run/pkg/pr:3122:10fb6e8Transitive Dependencies (22)pnpm install https://pkg.alchemy.run/@distilled.cloud/aws/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/acme/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/archil/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/core/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/axiom/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/doppler/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/infisical/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/turso/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/daytona/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/planetscale/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/neon/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/s3/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/prisma/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/hetzner/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/railway/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/fly-io/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/github/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/stripe/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/aws4signer/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/cloudflare/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/iceberg/pr:3122:10fb6e8pnpm install https://pkg.alchemy.run/@distilled.cloud/gcp/pr:3122:10fb6e8Published |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PrismaEnvironmentnow holds an Effect, likeCloudflareEnvironment,FlyEnvironmentandRailwayEnvironment. Alchemy runs it on every Management API request, so a host can supply a token that refreshes during a deploy, such as aprisma loginsession.Breaking: code that provides or reads
PrismaEnvironmentdirectly changes shape.Prisma.providers()andPrisma.managementApi()are unchanged.This also bumps
submodules/distilledto distilledmain, which includes alchemy-run/distilled#1076 (Credentials.apiTokenis now optional). Log streams open their own WebSocket, so they can't let a transport add the header. WhenCredentialshas no token they now fail with aConfigErrorinstead of connecting without auth.This is the alternative to #3101: with a per-request token the host doesn't need to authenticate through
HttpClient, and every request, the log socket included, carries the current token.