Basically, I'm smarter than everybody else.

This commit is contained in:
Oliver Atkinson
2024-12-13 14:05:08 -07:00
parent b5e30e467b
commit 0fb49cbfd0
2 changed files with 40 additions and 13 deletions

View File

@@ -1,10 +1,10 @@
function handle(requestDetails) {
let b64 = btoa(requestDetails.url)
// let original = atob(b64);
// console.log(`Loading: ${requestDetails.url} || ${b64}`);
return {
redirectUrl: `http://localhost:4433/s3/${b64}`
if (!requestDetails.url.startsWith("http://localhost")) {
console.log(`Loading: ${requestDetails.url} || ${b64}`);
return {
redirectUrl: `http://localhost:4433/s3/${b64}`
}
}
}