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 f3725fe commit ef821abCopy full SHA for ef821ab
src/lib/utils/purge.ts
@@ -5,5 +5,8 @@ const purgePath = 'http://nginx:1810/purge'
5
/**Purges the given path from the nginx cache*/
6
export default async function purgeRoute(path: string) {
7
if (path.startsWith('/')) throw new SyntaxError(`path "${path}" cannot be absolute.`)
8
- await fetch(`${purgePath}/${path}`)
+ const res = await fetch(`${purgePath}/${path}`)
9
+
10
+ console.log(res)
11
+ console.log(res.body)
12
}
0 commit comments