Closed jahands closed 4 years ago
That is a true. It have nothing to do with worker code. But I think that it is added as an optional for users who need to use serverless deployment method.
Makes sense. I'm new to npm so I was confused but I'm sure experienced users will know they can remove it. Maybe it should be noted in the readme that it can be removed if you aren't using that deployment method? Especially now that a good alternative exists for deploying to Workers (wrangler).
i have made an updated version of this template - API Worker Template or you can try more this one if you need to use as npm module in wrangler project.
Oh hey thanks! The module is actually exactly what I want! I'll go ahead and close this.
Why is this included as a dependency when it isn't used? Unless I'm missing something, the code works just fine with it not included.