Skip to main content
When your game is ready to ship, the build-and-serve path takes it from source to a running production instance.
1

Build for production

The client and server are compiled into the output directories defined in your configuration (.nanoforge/client and .nanoforge/server by default). Override any path per run, for example:
2

Start the built game

nf start launches the loader (the website that loads the game) and the server when enabled. Choose the loader port with -p:
3

Serve over HTTPS (optional)

Provide a certificate and key to serve securely:
Scaffolding with nf new --docker generates Docker files so you can containerize the build for deployment.