Following the Nuxt3 integration guide and running
npm run layer0:dev runs the sample project successfully.
Buf you wait for it to compile and load the homepage. There are 404 errors for all
Example project: GitHub - tinhtm/layer0-nuxt3
Working example link: https://rishi-raj-jain-layer0-nuxt3-example-default.layer0-limelight.link/
GitHub: GitHub - rishi-raj-jain/nuxt3-layer0
Steps to install it:
Steps to run it:
- 0 dev (or
npm run 0:dev)
- 0 build (or
npm run 0:build)
- 0 run -p (or
npm run 0:prod)
- 0 deploy (or
npm run 0:deploy)
Spinned up a connector for you by following: Connectors | Layer0 Documentation.
layer0/prod.js: I just load the node-server as generated by Nitro
layer0/dev.js: I run
npm run dev which invokes
layer0/build.js: I build the Nuxt 3 project with
npm run build which invokes
nuxt build. Then I add the respective folders to work on serverless or static storage. Further, I create set of routes from the folder .output/public so that these are automatically cached with Layer0, and you can freely set the config of these public assets in
Overall at the time of writing, you can just clone this, and continue to develop like a Nuxt 3 app, all is handled to work with Layer0.
The background on this issue is that a change on the Nuxt side from
firstname.lastname@example.org is causing the Layer0 connector to use the Nuxt 2 connector instead of the Nuxt 3 connector. Layer0 developers are testing a fix and should have a pre-release available shortly.
Please refer to Nuxt 3 - Roadmap for the Nuxt 3 roadmap. As of the time of this writing, Nuxt 3 is still in a release candidate (RC) state and is not yet stable.