Mads
Mads
Explore posts from servers
RRailway
Created by Mads on 2/15/2024 in #✋|help
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?
4 replies