fix: scope useWorkspace to panel and add FLY_TOKEN env fallbacks

This commit is contained in:
nandi committed 2026-11-18 16:39:17 -08:00
1 parent b8f5b77931
commit d399919690
3 files changed
+33 -16

No files matched your search

+5 -1
View File
@@ -109,7 +109,11 @@ export class SpritesManager {
if (fromSettings) {
return { token: fromSettings, source: "settings", baseUrl };
}
const fromEnv = process.env.SPRITES_TOKEN?.trim() ?? "";
const fromEnv =
process.env.SPRITES_TOKEN?.trim() ||
process.env.FLY_TOKEN?.trim() ||
process.env.FLY_API_TOKEN?.trim() ||
"";
if (fromEnv) {
return { token: fromEnv, source: "env", baseUrl };
}