Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
01ca850
client sdk local emulator
BilalG1 Mar 13, 2026
25f8b1c
Gate server and admin emulator requests on credential init
BilalG1 Mar 19, 2026
51e71cf
Resolve merge conflicts in common.ts with envVars + emulator support
BilalG1 Apr 9, 2026
7d9e156
local emulator image opt
BilalG1 Apr 9, 2026
d724eb2
emulator fixes
BilalG1 Apr 10, 2026
cd087c5
Merge branch 'dev' into local-emulator-image-optimization
BilalG1 Apr 10, 2026
784f17c
emulator: fail-fast on provision errors, diagnose smoke test failures
BilalG1 Apr 10, 2026
7bf4a15
emulator: make cross-arch arm64 build survive TCG
BilalG1 Apr 10, 2026
6c5615b
emulator: drop --jitless, capture migration errors on failure
BilalG1 Apr 10, 2026
2538382
ci: run arm64 emulator build on ubuntu-24.04-arm (same-arch TCG)
BilalG1 Apr 10, 2026
54ecd7c
emulator: bounded dep wait with per-service diagnostics
BilalG1 Apr 10, 2026
5c3c436
emulator: only use -cpu cortex-a72 for cross-arch TCG
BilalG1 Apr 11, 2026
e9dfda7
Merge remote-tracking branch 'origin/dev' into client-sdk-local-emula…
BilalG1 Apr 13, 2026
e636151
emulator: move arm64 back to ubicloud cross-arch, run migrations with…
BilalG1 Apr 13, 2026
f4aca6d
emulator: swap --jitless for --no-opt on migration exec
BilalG1 Apr 13, 2026
144866a
emulator: pass --no-opt on node CLI, not via NODE_OPTIONS
BilalG1 Apr 13, 2026
5077bb2
pr comment fixes
BilalG1 Apr 13, 2026
95054ca
emulator: don't strip the clickhouse binary (breaks self-extractor)
BilalG1 Apr 13, 2026
999843b
emulator: bump cross-arch TCG -cpu to cortex-a76 (LSE for ClickHouse)
BilalG1 Apr 13, 2026
0896f14
ci: skip emulator boot/verify on arm64 (cross-arch TCG)
BilalG1 Apr 13, 2026
44e4079
emulator: add --no-wasm-tier-up to migration exec
BilalG1 Apr 13, 2026
b111ef2
Merge branch 'dev' into client-sdk-local-emulator-support
BilalG1 Apr 13, 2026
9ec08f4
emulator: dedupe probe list, factor log-stream and console-marker hel…
BilalG1 Apr 13, 2026
0ffd898
Merge branch 'emulator-arm64-ubicloud-jitless' into client-sdk-local-…
BilalG1 Apr 13, 2026
f8524e9
Merge branch 'dev' into emulator-arm64-ubicloud-jitless
BilalG1 Apr 14, 2026
9f26df0
Merge branch 'emulator-arm64-ubicloud-jitless' into client-sdk-local-…
BilalG1 Apr 14, 2026
9e38bc6
local emulator changes
BilalG1 Apr 14, 2026
9cf900a
Merge remote-tracking branch 'origin/dev' into client-sdk-local-emula…
BilalG1 Apr 14, 2026
9431105
Revert examples/middleware to origin/dev state
BilalG1 Apr 14, 2026
6e34776
Randomize CRON_SECRET in local emulator entrypoint
BilalG1 Apr 14, 2026
576a3cc
Use console.warn for emulator-already-running notice
BilalG1 Apr 14, 2026
383a036
Merge branch 'dev' into client-sdk-local-emulator-support
BilalG1 Apr 14, 2026
e30b9e0
Inject throwaway SEED keys into emulator smoke test
BilalG1 Apr 14, 2026
11567e8
emulator email-rendering, pck, and stripe fixes
BilalG1 Apr 14, 2026
73da966
Merge remote-tracking branch 'origin/dev' into client-sdk-local-emula…
BilalG1 Apr 14, 2026
04640d4
fix
BilalG1 Apr 14, 2026
4ae826d
fix copy emulator assets
BilalG1 Apr 14, 2026
0d98d55
emulator stripe fixes and gh action fix
BilalG1 Apr 14, 2026
224bc6b
Merge branch 'dev' into client-sdk-local-emulator-support
BilalG1 Apr 14, 2026
75aaf0c
emulator fix ai-chat, clickhouse queries, db sync
BilalG1 Apr 14, 2026
fa67984
Merge branch 'client-sdk-local-emulator-support' of https://github.co…
BilalG1 Apr 14, 2026
9552be8
Merge remote-tracking branch 'origin/dev' into client-sdk-local-emula…
BilalG1 Apr 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Resolve merge conflicts in common.ts with envVars + emulator support
Merge upstream envVars abstraction (replacing raw process.env reads)
with local emulator support additions. Add new
NEXT_PUBLIC_STACK_LOCAL_EMULATOR_CONFIG_FILE_PATH to envVars.
  • Loading branch information
BilalG1 committed Apr 9, 2026
commit 51e71cfade528106993adee4241c042b42dd6bd1
3 changes: 3 additions & 0 deletions packages/template/src/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const envVars = {
get STACK_PROJECT_ID() {
return (typeof process !== "undefined" ? process.env.STACK_PROJECT_ID : undefined) ?? undefined;
},
get NEXT_PUBLIC_STACK_LOCAL_EMULATOR_CONFIG_FILE_PATH() {
return (typeof process !== "undefined" ? process.env.NEXT_PUBLIC_STACK_LOCAL_EMULATOR_CONFIG_FILE_PATH : undefined) ?? undefined;
},
get NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY() {
return (typeof process !== "undefined" ? process.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY : undefined) ?? undefined;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const LOCAL_EMULATOR_INTERNAL_SECRET_SERVER_KEY = "local-emulator-secret-
export const LOCAL_EMULATOR_INTERNAL_SUPER_SECRET_ADMIN_KEY = "local-emulator-super-secret-admin-key";

export function getLocalEmulatorConfigFilePath(explicitOption?: string): string | undefined {
return explicitOption || process.env.NEXT_PUBLIC_STACK_LOCAL_EMULATOR_CONFIG_FILE_PATH || undefined;
return explicitOption || envVars.NEXT_PUBLIC_STACK_LOCAL_EMULATOR_CONFIG_FILE_PATH || undefined;
}

export function fetchEmulatorProjectCredentials(emulatorConfigFilePath: string): Promise<{
Expand Down Expand Up @@ -96,9 +96,9 @@ export function fetchEmulatorProjectCredentials(emulatorConfigFilePath: string):

export function getDefaultProjectId(options?: { isEmulator?: boolean }) {
if (options?.isEmulator) {
return process.env.NEXT_PUBLIC_STACK_PROJECT_ID || process.env.STACK_PROJECT_ID || "internal";
return envVars.NEXT_PUBLIC_STACK_PROJECT_ID || envVars.STACK_PROJECT_ID || "internal";
}
return process.env.NEXT_PUBLIC_STACK_PROJECT_ID || process.env.STACK_PROJECT_ID || throwErr(new Error("Welcome to Stack Auth! It seems that you haven't provided a project ID. Please create a project on the Stack dashboard at https://app.stack-auth.com and put it in the NEXT_PUBLIC_STACK_PROJECT_ID environment variable."));
return envVars.NEXT_PUBLIC_STACK_PROJECT_ID || envVars.STACK_PROJECT_ID || throwErr(new Error("Welcome to Stack Auth! It seems that you haven't provided a project ID. Please create a project on the Stack dashboard at https://app.stack-auth.com and put it in the NEXT_PUBLIC_STACK_PROJECT_ID environment variable."));
}

export function getDefaultPublishableClientKey() {
Expand All @@ -107,16 +107,16 @@ export function getDefaultPublishableClientKey() {

export function getDefaultSecretServerKey(options?: { isEmulator?: boolean }) {
if (options?.isEmulator) {
return process.env.STACK_SECRET_SERVER_KEY || LOCAL_EMULATOR_INTERNAL_SECRET_SERVER_KEY;
return envVars.STACK_SECRET_SERVER_KEY || LOCAL_EMULATOR_INTERNAL_SECRET_SERVER_KEY;
}
return process.env.STACK_SECRET_SERVER_KEY || throwErr(new Error("No secret server key provided. Please copy your key from the Stack dashboard and put it in the STACK_SECRET_SERVER_KEY environment variable."));
return envVars.STACK_SECRET_SERVER_KEY || throwErr(new Error("No secret server key provided. Please copy your key from the Stack dashboard and put it in the STACK_SECRET_SERVER_KEY environment variable."));
}

export function getDefaultSuperSecretAdminKey(options?: { isEmulator?: boolean }) {
if (options?.isEmulator) {
return process.env.STACK_SUPER_SECRET_ADMIN_KEY || LOCAL_EMULATOR_INTERNAL_SUPER_SECRET_ADMIN_KEY;
return envVars.STACK_SUPER_SECRET_ADMIN_KEY || LOCAL_EMULATOR_INTERNAL_SUPER_SECRET_ADMIN_KEY;
}
return process.env.STACK_SUPER_SECRET_ADMIN_KEY || throwErr(new Error("No super secret admin key provided. Please copy your key from the Stack dashboard and put it in the STACK_SUPER_SECRET_ADMIN_KEY environment variable."));
return envVars.STACK_SUPER_SECRET_ADMIN_KEY || throwErr(new Error("No super secret admin key provided. Please copy your key from the Stack dashboard and put it in the STACK_SUPER_SECRET_ADMIN_KEY environment variable."));
}

export function getDefaultExtraRequestHeaders() {
Expand Down Expand Up @@ -160,7 +160,7 @@ export function getBaseUrl(userSpecifiedBaseUrl: string | { browser: string, ser
} else {
url = envVars.NEXT_PUBLIC_SERVER_STACK_API_URL || envVars.NEXT_PUBLIC_STACK_API_URL_SERVER || envVars.STACK_API_URL_SERVER;
}
url = url || process.env.NEXT_PUBLIC_STACK_API_URL || process.env.STACK_API_URL || process.env.NEXT_PUBLIC_STACK_URL || (options?.isEmulator ? localEmulatorBaseUrl : defaultBaseUrl);
url = url || envVars.NEXT_PUBLIC_STACK_API_URL || envVars.STACK_API_URL || envVars.NEXT_PUBLIC_STACK_URL || (options?.isEmulator ? localEmulatorBaseUrl : defaultBaseUrl);
}

return replaceStackPortPrefix(url.endsWith('/') ? url.slice(0, -1) : url);
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.