Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export const GET = createSmartRouteHandler({
SELECT "projectId", "absoluteFilePath", "updatedAt"
FROM "LocalEmulatorProject"
ORDER BY "updatedAt" DESC
LIMIT 20
LIMIT 100
`);

const projectIds = rows.map((r) => r.projectId);
Expand Down
4 changes: 2 additions & 2 deletions apps/backend/src/lib/local-emulator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { globalPrismaClient } from "@/prisma-client";
import { detectImportPackageFromDir, renderConfigFileContent } from "@stackframe/stack-shared/dist/config-rendering";
import { isValidConfig } from "@stackframe/stack-shared/dist/config/format";
import { LOCAL_EMULATOR_ADMIN_EMAIL, LOCAL_EMULATOR_ADMIN_PASSWORD } from "@stackframe/stack-shared/dist/local-emulator";
import { getEnvVariable } from "@stackframe/stack-shared/dist/utils/env";
import { StatusError } from "@stackframe/stack-shared/dist/utils/errors";
import fs from "fs/promises";
Expand All @@ -9,8 +10,7 @@ import path from "path";

export const LOCAL_EMULATOR_ADMIN_USER_ID = "63abbc96-5329-454a-ba56-e0460173c6c1";
export const LOCAL_EMULATOR_OWNER_TEAM_ID = "5a0c858b-d9e9-49d4-9943-8ce385d86428";
export const LOCAL_EMULATOR_ADMIN_EMAIL = "local-emulator@stack-auth.com";
export const LOCAL_EMULATOR_ADMIN_PASSWORD = "LocalEmulatorPassword";
export { LOCAL_EMULATOR_ADMIN_EMAIL, LOCAL_EMULATOR_ADMIN_PASSWORD };

export const LOCAL_EMULATOR_ENV_CONFIG_BLOCKED_MESSAGE =
"Environment configuration overrides cannot be changed in the local emulator. Update this in your production deployment instead.";
Expand Down
5 changes: 3 additions & 2 deletions apps/dashboard/src/app/(main)/(protected)/layout-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { CursorBlastEffect } from "@stackframe/dashboard-ui-components";
import { ConfigUpdateDialogProvider } from "@/lib/config-update";
import { getPublicEnvVar } from '@/lib/env';
import { useStackApp, useUser } from "@stackframe/stack";
import { LOCAL_EMULATOR_ADMIN_EMAIL, LOCAL_EMULATOR_ADMIN_PASSWORD } from "@stackframe/stack-shared/dist/local-emulator";
import { runAsynchronouslyWithAlert } from "@stackframe/stack-shared/dist/utils/promises";
import { generateUuid } from "@stackframe/stack-shared/dist/utils/uuids";
import { useEffect } from "react";
Expand All @@ -20,8 +21,8 @@ export default function LayoutClient({ children }: { children: React.ReactNode }
if (user) return;
if (isLocalEmulator) {
await app.signInWithCredential({
email: "local-emulator@stack-auth.com",
password: "LocalEmulatorPassword",
email: LOCAL_EMULATOR_ADMIN_EMAIL,
password: LOCAL_EMULATOR_ADMIN_PASSWORD,
});
} else if (isPreview) {
const id = generateUuid();
Expand Down
Loading
Loading