The newest version of Freakybob.site: built from the ground up (twice!)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove cloudflare workers, open-beta prep

wish13yt 53cdbec6 86a234f5

-31
-22
site/worker.js
··· 1 - export default { 2 - async fetch(request, env, ctx) { 3 - try { 4 - return await env.ASSETS.fetch(request); 5 - } catch (err) { 6 - let notFoundPage; 7 - 8 - try { 9 - notFoundPage = await env.ASSETS.fetch(new Request("https://refreaked.wishinawel.workers.dev/404.html")); 10 - } catch { 11 - notFoundPage = new Response("<h1>404 - Page not found</h1><p>There was also an error loading the 404 page!</p>", { 12 - headers: { "Content-Type": "text/html" } 13 - }); 14 - } 15 - 16 - return new Response(await notFoundPage.text(), { 17 - status: 404, 18 - headers: { "Content-Type": "text/html" } 19 - }); 20 - } 21 - } 22 - };
-9
site/wrangler.jsonc
··· 1 - { 2 - "name": "refreaked", 3 - "main": "worker.js", 4 - "compatibility_date": "2025-04-01", 5 - "workers_dev": true, 6 - "assets": { 7 - "directory": "." 8 - } 9 - }