Skip to content

Commit

Permalink
Fix env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
joneslloyd committed Dec 29, 2024
1 parent 57ee361 commit 1e7ea96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/wxt/entrypoints/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export class PostStorage {
export const maybeInitializeDevModeAgent = async (
agentManager: BlueskyAgentManager,
) => {
const devUsername = import.meta.env.WXT_BS_DEV_USERNAME;
const devPassword = import.meta.env.WXT_BS_DEV_PASSWORD;
const devUsername = import.meta.env.WXT_BS_DEV_USERNAME?.trim();
const devPassword = import.meta.env.WXT_BS_DEV_PASSWORD?.trim();

if (devUsername && devPassword) {
await agentManager.login(devUsername, devPassword);
Expand Down
2 changes: 1 addition & 1 deletion packages/wxt/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import enTranslations from "./locales/en.json";
import frTranslations from "./locales/fr.json";
import jpTranslations from "./locales/jp.json";

const isDevMode = import.meta.env.MODE === "development";
const isDevMode = import.meta.env?.MODE === "development" ?? false;

i18n
.use(LanguageDetector)
Expand Down

0 comments on commit 1e7ea96

Please sign in to comment.