Skip to content

Commit

Permalink
fix: tidy up debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Aug 4, 2023
1 parent 2880c52 commit c85bfd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/rawkode.link/Justfile
@@ -1,3 +1,3 @@
deploy:
op run -- printenv RUDDERSTACK_AUTH | op run -- pnpm exec wrangler secret put RUDDERSTACK_AUTH
op run --no-masking -- printenv RUDDERSTACK_AUTH | op run -- pnpm exec wrangler secret put RUDDERSTACK_AUTH
op run -- pnpm exec wrangler deploy
6 changes: 3 additions & 3 deletions projects/rawkode.link/src/index.ts
Expand Up @@ -27,10 +27,10 @@ export default {
const hostname = requestUrl.host;
const path = requestUrl.pathname.substring(1);

console.log(`Handling request on domain '${hostname}' for '${path}'`);

ctx.waitUntil(logRequest(request, env, hostname, path));

console.log(`Handling request on domain '${hostname}' for '${path}'`);

if (!(hostname in redirects["domains"])) {
console.log("This domain is not managed by rawkode.link");
return Response.redirect(redirects.defaultRedirect);
Expand Down Expand Up @@ -94,5 +94,5 @@ const logRequest = async (

const response = await fetch(logRequest);

console.debug(response);
console.log(JSON.stringify(response.status));
};

0 comments on commit c85bfd0

Please sign in to comment.