Engine Guides for Hosting¶
Hosting takes the folder your engine builds for the web. That folder must have an index.html at the top. This page says where that folder is for each engine, and any setting to change.
Your game is served at the top of its own address (https://produce-conflict.gamefuse.co/), so paths that start with / work the same as on your own computer.
PixiJS, Phaser, Three.js and BabylonJS¶
These games are usually built with Vite, webpack, Parcel or another Node tool. You upload the build, not your project folder.
| Build tool | Command | Folder to upload |
|---|---|---|
| Vite | npm run build |
dist |
| webpack | npm run build |
dist (or the output.path in webpack.config.js) |
| Parcel | npx parcel build index.html |
dist |
| Create React App | npm run build |
build |
| No build tool | none | the folder with your index.html |
- Do not upload
node_modulesor your source folder. The check refusesnode_modules. - Files in Vite's
publicfolder are copied intodistby the build. Load them with paths like/assets/sprite.png. - If you load files by name in code, match the file name's capitals exactly. See The Check.
PlayCanvas¶
PlayCanvas Editor:
- Open your project and press Publish, then Download .zip (Web Download).
- Either drop that zip into the dashboard's Hosting tab, or unzip it and run
gamefuse hosting deploy <folder> --game 123.
The zip has index.html at the top, which is what Hosting needs.
PlayCanvas engine only (no Editor): build it like any other Vite or webpack game, above.
Unity WebGL¶
- File > Build Settings, pick WebGL, then Build. Choose an empty folder.
- Upload that folder. It holds
index.html,Build/andTemplateData/.
Settings in Player Settings > Publishing Settings:
| Setting | Use |
|---|---|
| Compression Format | Brotli or Gzip. Both work. Hosting sends the .br and .gz files so the browser unpacks them. |
| Decompression Fallback | Off. It is not needed. |
Unity's .data file is often the biggest file. Each file must be under the per-file limit (25 MB on Basic). Compression keeps it smaller. See Limits and Plans.
Godot¶
- Project > Export, add a Web preset.
- Turn Thread Support off (Godot 4.3 and later). A build with threads needs special server headers that Hosting does not send.
- Press Export Project. Export into an empty folder and name the file
index.html. - Upload that folder. It holds
index.html,.js,.wasmand.pckfiles.
Hosting sends .wasm and .pck files with the right types.
Construct¶
- Menu > Project > Export, pick Web (HTML5), and finish the export.
- Construct gives you a zip. Drop it into the dashboard's Hosting tab, or unzip it and run
gamefuse hosting deploy <folder> --game 123.
GDevelop¶
- File > Export, pick Web, then Export to a local folder.
- Upload that folder:
Any other engine¶
If it exports a folder with an index.html that runs when you serve the folder from a simple local web server, it works on Hosting. Run gamefuse hosting validate <folder> to check before you upload.