Skip to content

Commit b2cdedc

Browse files
committed
Remove debug logs
1 parent a9039ab commit b2cdedc

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/lib/utils/purge.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ 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-
const res = await fetch(`${purgePath}/${path}`)
9-
10-
console.log(res)
11-
console.log(res.body)
8+
await fetch(`${purgePath}/${path}`)
129
}

src/payload.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ export default buildConfig({
7777
user: process.env.EMAIL_USER,
7878
pass: EMAIL_PASSWORD,
7979
},
80-
debug: true,
81-
logger: true,
8280
},
8381
}),
8482
localization: {

0 commit comments

Comments
 (0)