How to let a worker work on the root domain

For Workes & Pages, what is the name of the domain?

https://test.t1.lhyang.shop/main

What is the issue or error you’re encountering

I want to let a worker work on the root domain

What are the steps to reproduce the issue?

So I have a domain like xxx.com, and I saw this essay here. In the essay, it said that we can build pages by using workers, and if my worker is called function/main.js, it will work on xxx.com/main. However, are there any ways to setup a worker that could work on xxx.com/?

index.js will run on index.html (aka /)

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.