Build fails (Nuxt 3)
I have a sort of monorepo that looks like this:
├── base/
│ ├── index.js
│ └── package.json
│ └── ...
└── extended/
├── index.js
└── package.json
└── ...
I am using Nuxt 3 with layers (https://nuxt.com/docs/getting-started/layers)
When I want to build extended, it has references to files in the base directory. e.g:
import foo from './base/xxx.ts'
Locally this works fine. But when deploying on Railway it can't find these references.
How do I define the base directory?
Also when defining a base directory, will it be able to find the references?
How would my nixpacks.toml look?
Nuxt
Layers · Get Started with Nuxt
Nuxt provides a powerful system that allows you to extend the default files, configs, and much more.
3 Replies