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 a9039ab commit b2cdedcCopy full SHA for b2cdedc
src/lib/utils/purge.ts
@@ -5,8 +5,5 @@ 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
- const res = await fetch(`${purgePath}/${path}`)
9
-
10
- console.log(res)
11
- console.log(res.body)
+ await fetch(`${purgePath}/${path}`)
12
}
src/payload.config.ts
@@ -77,8 +77,6 @@ export default buildConfig({
77
user: process.env.EMAIL_USER,
78
pass: EMAIL_PASSWORD,
79
},
80
- debug: true,
81
- logger: true,
82
83
}),
84
localization: {
0 commit comments