lambda0xff
Nuxt Layers: using template vs default application
When creating a new layer, what would be the major differences (pros and cons) between using a layer template (nuxi@latest init -t layer mylayer) and directly initializing a full Nuxt app and using it as layer ? Both approaches seem to be working.
5 replies
Nuxt layers and deployment on Vercel/Netlify fails because of missing `tsconfig.json`
Hello all, I'm currently learning to use layers, and it's all great, but I have an issue when trying to deploy on Vercel or Netlify.
Basically, I have a bun monorepo with a Nuxt app extending a Nuxt "base" layer. The app was created with 'bunx nuxi@latest init myapp' and the layer was created with 'bunx nuxi@latest init -y layer base'. When trying to deploy the app, I get this error: "[vite:vue] failed to resolve "extends":"./.playground/.nuxt/tsconfig.json" in /opt/build/repo/packages/base/tsconfig.json"
5 replies