Railpack detects wrong language
mmattbtw
HOBBYOP

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 Rust

I'd like to be able to manually override which language it detects, as when it detects Rust, pnpm is not available.

$10 Bounty

4 Replies

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.

mmattbtw
HOBBYOP

23 days ago

They are in separate folders.

apps/app -> Next.js
apps/api -> Rust

the monorepo includes:
/package.json -> Node.js tooling
and
/Cargo.toml -> Rust tooling

This is very normal for a monorepo like this.


mmattbtw
HOBBYOP

23 days ago

  1. Root Directory doesn't work with pnpm workspace packages (see: https://docs.railway.com/deployments/monorepo#deploying-a-shared-monorepo)

  2. Forcing NIXPACKS_PROVIDER doesn't work

  3. Is unrelated

  4. ...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


Loading...