-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add layer0 preset #39
Conversation
Deploy command: Since this will have been built already with Nitro, it can be deployed with Preview command: I assume you are just wanting to run the production build locally? If that is the case, the command would be I did try this locally, but got hung up on some error that I've been trying to debug:
|
@tristanlee85 That should be now resolved, by #42. (Or you can use node 16 until you upgrade.) |
It's assumed these are already installed and not necessary as part of Nitro
I'm moving layer0 preset for now to a POC repository to avoid conflicts with nitro changes and also trying deployment easier. https://github.com/unjs/nitro-poc-layer0 |
π Linked issue
β Type of change
π Description
Extracterd from
@layer0/nuxt3
. Currently based onnode
presrt and generates additional.output/server/prod.cjs
with layer0 format and CommonJS wrapper.Try with:
feat/layer0-preset
branchNITRO_PRESET=layer0 yarn nitro build examples/hello-world
and checkexamples/hello-world/.output
Questions:
/cc @tristanlee85
Future improvements:
Looking at routes.js, we can potentially auto genere this file from nitro route caching rules for edge-caching. I need more details how it works :)
π Checklist