Skip to content

Commit dbb149e

Browse files
fix(app): auto-approve the org creation on staging (#1676)
Co-authored-by: chasprowebdev <chasgarciaprowebdev@gmail.com>
1 parent 154a71c commit dbb149e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/app/src/app/(app)/setup/actions/create-organization-minimal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const createOrganizationMinimal = authActionClientWithoutOrg
4545
website: parsedInput.website,
4646
onboardingCompleted: false, // Explicitly set to false
4747
// Local-only: default access for faster local development
48-
...(process.env.NODE_ENV !== 'production' && { hasAccess: true }),
48+
...(process.env.NEXT_PUBLIC_APP_ENV !== 'production' && { hasAccess: true }),
4949
members: {
5050
create: {
5151
userId: session.user.id,

0 commit comments

Comments
 (0)