File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { json } from '@remix-run/router'
2+
13export async function loader ( ) {
2- return fetch (
4+ const result = await fetch (
35 'https://kcd-oauth-provider.kentcdodds.workers.dev/.well-known/oauth-authorization-server' ,
46 )
7+ if ( ! result . ok ) {
8+ return result
9+ }
10+
11+ const data = await result . json ( )
12+
13+ return json ( data )
514}
Original file line number Diff line number Diff line change 1+ import { json } from '@remix-run/router'
2+
13export async function loader ( ) {
2- return fetch (
4+ const result = await fetch (
35 'https://kcd-oauth-provider.kentcdodds.workers.dev/.well-known/oauth-protected-resource' ,
46 )
7+ if ( ! result . ok ) {
8+ return result
9+ }
10+
11+ const data = await result . json ( )
12+
13+ return json ( data )
514}
Original file line number Diff line number Diff line change 11import fs from 'node:fs'
22import path from 'node:path'
3- import { DatabaseSync } from 'node:sqlite'
43import {
54 type Cache ,
65 cachified as baseCachified ,
@@ -13,6 +12,7 @@ import {
1312import { remember } from '@epic-web/remember'
1413import { getInstanceInfo , getInstanceInfoSync } from 'litefs-js'
1514import { LRUCache } from 'lru-cache'
15+ import { DatabaseSync } from 'node:sqlite'
1616import { updatePrimaryCacheValue } from '#app/routes/resources+/cache.sqlite.ts'
1717import { getRequiredServerEnvVar } from './misc.tsx'
1818import { getUser } from './session.server.ts'
You can’t perform that action at this time.
0 commit comments