Skip to content

Commit

Permalink
fix(storefront): Using import.meta.env in place of process.env fo…
Browse files Browse the repository at this point in the history
…r not-node env support
  • Loading branch information
leomp12 committed Mar 24, 2023
1 parent d409569 commit ad5e0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storefront/src/lib/layouts/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Props {
title?: string;
}
const deployRand = process.env.DEPLOY_RAND || '_';
const deployRand = import.meta.env.DEPLOY_RAND || '_';
const getIconUrl = (size: number) => {
return `/_image?f=png&w=${size}&h=${size}`
+ `&href=${encodeURIComponent(settings.icon)}&V=${deployRand}`;
Expand Down

0 comments on commit ad5e0cb

Please sign in to comment.