Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 30, 2023
1 parent 8756140 commit 67c3efe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 14 additions & 0 deletions Documentation/_worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default {
async fetch(request, env) {
const url = new URL(request.url);

if (url.pathname.startsWith("/functions/")) {
// TODO: Add your custom /functions/* logic here.
return new Response("Ok");
}

// Otherwise, serve the static assets.
// Without this, the Worker will error and no assets will be served.
return env.ASSETS.fetch(request);
},
};
3 changes: 0 additions & 3 deletions Documentation/functions/[[html]].js

This file was deleted.

0 comments on commit 67c3efe

Please sign in to comment.