From the readme:
At present, wrangler v2 does not support Durable Objects, which is why this exists in its own little package. We'll update this repo when we can simplify the deployment process.
Since there is nowhere in the docs that says anything about how to actually create a durable object in a Pages project, I am very relieved to have finally found this project. Unfortunately, it seems this is out of date.
It would also be nice to have some clarity on why the 'utils' directory can contain modules that don't serve a route. The docs suggest that ALL files in the 'functions' directory serve routes, with _middleware being a special case. What happens if someone requests 'http://xxx.xxx/utils/constants'?
From the readme:
Since there is nowhere in the docs that says anything about how to actually create a durable object in a Pages project, I am very relieved to have finally found this project. Unfortunately, it seems this is out of date.
It would also be nice to have some clarity on why the 'utils' directory can contain modules that don't serve a route. The docs suggest that ALL files in the 'functions' directory serve routes, with _middleware being a special case. What happens if someone requests 'http://xxx.xxx/utils/constants'?