* feat(example): add node-nx-next workspace scaffold - Initialize an Nx workspace with a Next.js application using pnpm. - Configure workspace tooling including TypeScript, Prettier, and ESLint. - Include a generation script to automate the workspace setup process. Generated-by: aiautocommit * feat(node): add BuildScriptContains helper to PackageJson Generated-by: aiautocommit * feat(node): add support for Nx workspaces with Next.js - Implement Nx workspace detection and package resolution. - Enable automatic Nx build commands when no root build script is detected. - Add RAILPACK_NX_APP environment variable to support selecting specific apps in multi-app workspaces. - Refactor Next.js detection logic to better support monorepo and Nx-inferred architectures. - Include unit tests for Nx workspace detection and build/start command generation. Generated-by: aiautocommit * docs: add documentation for Nx monorepo support - Explain how Railpack handles Nx workspaces, including automatic detection and support for inferred tasks. - Document the new `RAILPACK_NX_APP` configuration variable to target specific apps in multi-app workspaces. - Detail the build and start behavior for Next.js applications within an Nx context. Generated-by: aiautocommit * test: add snapshot for Nx Node.js and Next.js example Generated-by: aiautocommit * chore: bump railpack images and set version to dev - Update builder and runtime images to mise-2026.7.7 - Include RAILPACK_VERSION environment variable in build plan Generated-by: aiautocommit
build subcommand (#595)
build subcommand (#595)
build subcommand (#595)
build subcommand (#595)
Railpack
Railpack is a tool for building images from source code with minimal configuration. It is the successor to Nixpacks and incorporates many of the learnings from running Nixpacks in production at Railway for several years.
Getting Started
# Install mise & railpack
curl -sSL https://mise.run | sh
mise install github:railwayapp/railpack@latest
# start BuildKit container & let railpack know about it
docker run --rm --privileged -d --name buildkit moby/buildkit
export BUILDKIT_HOST='docker-container://buildkit'
# create a Next.js app
npm create next-app@latest my-app
cd my-app
# build and run the app!
railpack build .
docker run -p 3000:3000 -it my-app
Railpack automatically detects the project type (Next.js, in this case, but many languages & frameworks are supported!) and generates an optimized container image.
Note: The above steps are for running Railpack locally to experiment and test. If you deploy on Railway, Railpack runs automatically when you push changes to your repository.
Documentation
Full documentation for both operators (platforms, like Railway) and users (developers using Railpack to build their applications) is available at railpack.com.
Contributing
Railpack is open source and open to contributions. See the CONTRIBUTING.md file for more information.