We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d74d2 commit 65d9714Copy full SHA for 65d9714
packages/workshop-utils/src/utils.server.ts
@@ -29,9 +29,11 @@ export async function checkConnection({
29
key: 'connected',
30
ttl: 1000 * 10,
31
async getFreshValue(context) {
32
- const response = await fetch('https://www.cloudflare.com', {
+ console.time('checkConnection')
33
+ const response = await fetch('https://one.one.one.one/cdn-cgi/trace', {
34
method: 'HEAD',
35
})
36
+ console.timeEnd('checkConnection')
37
if (response.ok) {
38
context.metadata.ttl = 1000 * 60
39
context.metadata.swr = 1000 * 60 * 30
0 commit comments