fix: scope useWorkspace to panel and add FLY_TOKEN env fallbacks
This commit is contained in:
1 parent
b8f5b77931
commit
d399919690
3 files changed
+33
-16
No files matched your search
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user