2 Route worker

Can I make the worker work like Two routs Api.xyz.com ==> invokes worker Docs.xyz.com ==> Never ever invokes the worker but serves the static files stores in the /docs folder (It should give 404 in all the other cases even when done fetch for invalid path without invoking the worker just like pages)
2 Replies
Sb
SbOP3mo ago
They both are connected somehow, so I cannot create two separate projects (api and docs cannot be seperate they must be together)
Walshy
Walshy3mo ago
I'd definitely have these separate, otherwise you will need to invoke the Worker on docs.

Did you find this page helpful?