Build the game
Run the build command from the repo root, using TurboRepo’s The SvelteKit build produces two output directories inside
--filter flag to target the lines game (or replace lines with your game’s package name):apps/lines/.svelte-kit/output/:| Path | Contents |
|---|---|
prerendered/pages/index.html | The pre-rendered entry HTML file |
client/ | All client-side JavaScript, CSS, and static assets |
Assemble the build folder
Create a new folder (e.g.
build/) anywhere on your machine. Copy the index.html and the entire contents of the client/ directory into it so the final structure looks like this:The
index.html comes from apps/lines/.svelte-kit/output/prerendered/pages/index.html. Everything else comes from apps/lines/.svelte-kit/output/client/.Upload to Stake Engine
- Log in to Stake Engine.
- Navigate to the Files page of your game.
- Click Import and select your entire
build/folder to upload the frontend assets. - Once the upload completes, click the Publish Game button and select Front End.
Start a game session and verify
- Go to the Developer page in Stake Engine.
- Click Start game session.
- Click Launch in New Tab.
Connect DEV mode to the RGS
The URL of the launched game contains a query string with the authentication parameters needed to connect to the RGS. Copy the full query string from the browser address bar.Start the local dev server:Paste the copied query string into the URL of your local dev server. The authentication error screen will resolve and the game will connect to the live RGS, giving you hot-reloading development against a real backend.
Rebuilding packages
If you modify source files insidepackages/pixi-svelte, those changes won’t take effect automatically because the package is resolved from its compiled output. Rebuild it before running your game:
main field pointing to a built artifact in its package.json.