Closed iosdeveloper closed 1 year ago
Hey @iosdeveloper, thanks for using passkit-generator! Well, I guess something might have changed. I'll take a look and update it. Thanks for your pointer!
Since this example is quite old, is there a better way to install this project in Cloudflare Worker?
I honestly don't know. I do not work with Cloudflare Workers. I barely used them to create the example when a guy shared their existence with me.
I'll keep you posted about this.
Hi @iosdeveloper, https://github.com/alexandercerutti/passkit-generator/commit/34a12e3879d38f7c4af83cb11433af049630efaa brings the new reworked cloudflare workers example.
I've removed the two examples there were before as they were completely outdated as you found out. I'd like to thank for reporting me this.
I've been able to run the worker locally without any issue, but I haven't tested a deployed version.
Let me know what do you think of this!
P.s. if you could leave a ⭐ on the project, that would be awesome!
It works! Thank you so much. 💙
Already did 😃
Running OS
macOS 13.5.2
Running Node Version
16.19.1
Description
Trying to run examples/cloudflare-worker/webpack5.x using
npm run example
fails.Expected behavior
Local server successfully starts
Steps to reproduce
Execute
npm run example
:Were you able to verify it by using (and changing) the examples?
Yes
If yes, which changes did you apply?
Fix missing entry-point error by adding this line to wrangler.toml:
main = "dist/worker.js"
Other details
Since this example is quite old, is there a better way to install this project in Cloudflare Worker?