Skip to content

Commit 085434d

Browse files
Fix build and lint failures on dev
- Fix CLI typecheck error: resolveSessionAuth() takes no arguments - Add dashboard .env.production.local setup to CI workflows that run build:packages (check-prisma-migrations, setup-tests, setup-tests-with-custom-base-port) The dashboard build is now triggered by build:packages because @stackframe/stack-cli#build depends on @stackframe/dashboard#build:rde-standalone. Without the env file, new URL('') throws TypeError: Invalid URL in layout.tsx. Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
1 parent bb90106 commit 085434d

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/check-prisma-migrations.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
wait-for: 3s
4343
log-output-if: true
4444

45+
- name: Create .env.production.local file for apps/dashboard
46+
run: cp apps/dashboard/.env.development apps/dashboard/.env.production.local
47+
4548
- name: Install dependencies
4649
run: pnpm install --frozen-lockfile
4750

.github/workflows/setup-tests-with-custom-base-port.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
- name: Install packages
3838
run: pnpm install
3939

40+
- name: Create .env.production.local file for apps/dashboard
41+
run: cp apps/dashboard/.env.development apps/dashboard/.env.production.local
42+
4043
- run: pnpm run build:packages
4144
- run: pnpm run codegen
4245
- run: pnpm run start-deps

.github/workflows/setup-tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Install packages
3636
run: pnpm install
3737

38+
- name: Create .env.production.local file for apps/dashboard
39+
run: cp apps/dashboard/.env.development apps/dashboard/.env.production.local
40+
3841
- run: pnpm run build:packages
3942
- run: pnpm run codegen
4043
- run: pnpm run start-deps

packages/stack-cli/src/commands/whoami.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function registerWhoamiCommand(program: Command) {
88
.description("Show the currently logged-in Stack Auth CLI user")
99
.action(async () => {
1010
const flags = program.opts();
11-
const auth = resolveSessionAuth(flags);
11+
const auth = resolveSessionAuth();
1212
const user = await getInternalUser(auth);
1313
const teams = await user.listTeams();
1414

0 commit comments

Comments
 (0)