tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
cache domain lookups in middleware
awarm.space
6 months ago
298df37b
515933e3
+13
1 changed file
expand all
collapse all
unified
split
middleware.ts
+13
middleware.ts
···
19
19
let supabase = createClient<Database>(
20
20
process.env.NEXT_PUBLIC_SUPABASE_API_URL as string,
21
21
process.env.SUPABASE_SERVICE_ROLE_KEY as string,
22
22
+
{
23
23
+
global: {
24
24
+
fetch: async (...args) => {
25
25
+
const response = await fetch(args[0], {
26
26
+
...args[1],
27
27
+
next: {
28
28
+
revalidate: 60,
29
29
+
},
30
30
+
});
31
31
+
return response;
32
32
+
},
33
33
+
},
34
34
+
},
22
35
);
23
36
24
37
const auth_callback_route = "/auth_callback";