Skip to content

Commit

Permalink
fix the most frustrating cache problem there is in the planet
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Aug 15, 2024
1 parent ba33602 commit e979578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface BaseApi {

export const BASE_URL = 'https://mealdrop.netlify.app/.netlify/functions/restaurants'

const isMockedEnvironment = !!import.meta.env.STORYBOOK || import.meta.env.NODE_ENV === 'test'
const isMockedEnvironment = !!import.meta.env.STORYBOOK || import.meta.env.NODE_ENV === 'test' || (globalThis as any).__vitest_browser__

const apiCache = new Map()

Expand Down

0 comments on commit e979578

Please sign in to comment.