Bun project detection
Anonymous
HOBBYOP

2 months ago

Hello, I am not sure whether I am actually running my next.js 16 project using bun or not.

In the deploy logs, there is a warning with node in it, which got me thinking I am using node not bun

```
(node:11) Warning: --localstorage-file was provided without a valid path
```

In the configuration section, executable versions show both bun and node

Attachments

Solved

1 Replies

echohack
EMPLOYEE

2 months ago

Hey there, looks like you're using Railpack.

https://railpack.com/languages/node/#bun

```
Bun

The Bun version is determined in the following order:

  • Set via the RAILPACK_BUN_VERSION environment variable

  • Read from the .bun-version file

  • Read from the engines.bun field in package.json

  • Read from mise.toml or .tool-versions files

  • Defaults to latest

If Bun is used as the package manager, Node.js will still be installed in the following cases:

  • If you define a packageManager field in your package.json (for Corepack support)

  • If any script in your package.json contains node

  • If you’re using Astro

When Node.js isn’t required in the final image but is needed during installation (for native modules), Node.js will be installed via mise and will respect version specifications in mise.toml and .tool-versions files.
```

Are any of these true about your package.json or dependencies? if so then node would get installed during build time.


Status changed to Awaiting User Response Railway 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 2 months ago


Loading...