Describe the bug
When building a multi-layer project, the @nuxthub/db/schema package generated inside .output/server only contains schemas from a single layer.
As a workaround, I added this to my Dockerfile to copy the module from the main node_modules (outside .output), which is correctly merged:
COPY --from=build /app/node_modules/@nuxthub/db/ ./server/node_modules/@nuxthub/db/
Steps to reproduce
Steps to reproduce the behavior:
- Create a new Nuxt layer inside the
layers directory
- Define a database schema inside the layer
- Define another database schema outside the layer
- Run nuxt build
- Check the contents of
.output/server/node_modules/@nuxthub/db/schema.mjs
Expected behavior
The schema.mjs file should contain the schemas from both layers, just like the one outside the .output directory.
Current behavior
The schema.mjs inside .output only contains schemas from a single layer
Describe the bug
When building a multi-layer project, the
@nuxthub/db/schemapackage generated inside.output/serveronly contains schemas from a single layer.As a workaround, I added this to my Dockerfile to copy the module from the main
node_modules(outside.output), which is correctly merged:COPY --from=build /app/node_modules/@nuxthub/db/ ./server/node_modules/@nuxthub/db/Steps to reproduce
Steps to reproduce the behavior:
layersdirectory.output/server/node_modules/@nuxthub/db/schema.mjsExpected behavior
The
schema.mjsfile should contain the schemas from both layers, just like the one outside the.outputdirectory.Current behavior
The
schema.mjsinside.outputonly contains schemas from a single layer