Skip to content

Commit ef821ab

Browse files
committed
Add debug purge
1 parent f3725fe commit ef821ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/utils/purge.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ const purgePath = 'http://nginx:1810/purge'
55
/**Purges the given path from the nginx cache*/
66
export default async function purgeRoute(path: string) {
77
if (path.startsWith('/')) throw new SyntaxError(`path "${path}" cannot be absolute.`)
8-
await fetch(`${purgePath}/${path}`)
8+
const res = await fetch(`${purgePath}/${path}`)
9+
10+
console.log(res)
11+
console.log(res.body)
912
}

0 commit comments

Comments
 (0)