23 days ago
I have a Rust Cargo.toml and a package.json in my root monorepo directory to have 1. tests for all my Rust projects running at once and 2. manage my monorepo using turborepo and all my typescript projects too.
I'm trying to deploy a Next.js project in apps/app, but Railpack detects as a Rust project.
╭─────────────────╮
│ Railpack 0.17.1 │
╰─────────────────╯
↳ Detected RustI'd like to be able to manually override which language it detects, as when it detects Rust, pnpm is not available.
4 Replies
23 days ago
I would recommend you split your subprojects into its own folders. Eg, /frontend and /backend.
0x5b62656e5d
I would recommend you split your subprojects into its own folders. Eg, /frontend and /backend.
23 days ago
They are in separate folders.apps/app -> Next.jsapps/api -> Rust
the monorepo includes:/package.json -> Node.js tooling
and/Cargo.toml -> Rust tooling
This is very normal for a monorepo like this.
23 days ago
Root Directory doesn't work with pnpm workspace packages (see: https://docs.railway.com/deployments/monorepo#deploying-a-shared-monorepo)
Forcing
NIXPACKS_PROVIDERdoesn't workIs unrelated
...is unrelated
11 days ago
@mmattbtw you can force the provider via the provider top-level config. https://railpack.com/config/file#root-configuration
Something like this should work:
```
{
"provider": "node"
}
```
in railpack.json