Skip to content
Download all docs .md

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
npm run build
gamefuse hosting deploy dist --game 123
  • Do not upload node_modules or your source folder. The check refuses node_modules.
  • Files in Vite's public folder are copied into dist by 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:

  1. Open your project and press Publish, then Download .zip (Web Download).
  2. 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

  1. File > Build Settings, pick WebGL, then Build. Choose an empty folder.
  2. Upload that folder. It holds index.html, Build/ and TemplateData/.
gamefuse hosting deploy MyGameWebGL --game 123

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

  1. Project > Export, add a Web preset.
  2. Turn Thread Support off (Godot 4.3 and later). A build with threads needs special server headers that Hosting does not send.
  3. Press Export Project. Export into an empty folder and name the file index.html.
  4. Upload that folder. It holds index.html, .js, .wasm and .pck files.
gamefuse hosting deploy build/web --game 123

Hosting sends .wasm and .pck files with the right types.

Construct

  1. Menu > Project > Export, pick Web (HTML5), and finish the export.
  2. 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

  1. File > Export, pick Web, then Export to a local folder.
  2. Upload that folder:
gamefuse hosting deploy MyGameExport --game 123

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.