Skip to content

Commit 10e9d38

Browse files
authored
feat: remove cache: no-store as it breaks cloudflare (#886)
Fixes supabase/supabase-js#1001 Hopefully the NextJS caching takes in the Authorization header in the cache key.
1 parent 760611b commit 10e9d38

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib/fetch.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ async function _handleRequest(
177177
try {
178178
result = await fetcher(url, {
179179
...requestParams,
180-
// UNDER NO CIRCUMSTANCE SHOULD THIS OPTION BE REMOVED, YOU MAY BE OPENING UP A SECURITY HOLE IN NEXT.JS APPS
181-
// https://nextjs.org/docs/app/building-your-application/caching#opting-out-1
182-
cache: 'no-store',
183180
})
184181
} catch (e) {
185182
console.error(e)

0 commit comments

Comments
 (0)