Skip to content

Commit 16e1a92

Browse files
committed
fix: dev env connection issue
This PR fixes an issue introduced in #2391 where the dev runtime env was not being resolved correctly.
1 parent e6f6d93 commit 16e1a92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/webapp/app/services/apiAuth.server.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,13 @@ export async function authenticatedEnvironmentForAuthentication(
500500
where: {
501501
projectId: project.id,
502502
slug: slug,
503+
...(slug === "dev"
504+
? {
505+
orgMember: {
506+
userId: user.id,
507+
},
508+
}
509+
: {}),
503510
},
504511
include: {
505512
project: true,

0 commit comments

Comments
 (0)