Hotfix scope derp with secret
This commit is contained in:
parent
942f229d60
commit
5e4a546111
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -1,3 +1,5 @@
|
|||
let secret
|
||||
|
||||
addEventListener('fetch', event => {
|
||||
event.respondWith(handleRequest(event.request))
|
||||
})
|
||||
|
|
@ -7,8 +9,6 @@ addEventListener('fetch', event => {
|
|||
* @param {Request} request
|
||||
*/
|
||||
async function handleRequest(request) {
|
||||
let secret
|
||||
|
||||
// Set this in your worker's environment. wrangler.toml or cloudflare dashboard
|
||||
if (WORKERLINKS_SECRET === undefined ) {
|
||||
return new Response("Secret is not defined. Please add WORKERLINKS_SECRET.")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue