Skip to content

Commit

Permalink
Fix environment variable check for Netlify (#8848)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jul 18, 2024
1 parent 37bd761 commit d955b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/open-graph/_fetchFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function fetchBrandFont() {
} catch (error) {
// When running locally, if anything goes wrong, we can safely return
// nothing and continue with the default local fonts.
if (!import.meta.env.VERCEL) return undefined;
if (!import.meta.env.NETLIFY) return undefined;
// But in production builds we want to error if we failed to download fonts.
throw error;
}
Expand Down

0 comments on commit d955b6f

Please sign in to comment.