Godot 4 web export checklist

Settings that make a Godot web export run in Game Hub's sandbox and on phones.

by gamehub · Godot

0
Publish your game
⚑ Report

Log in to report this.

## Export
1. Project → Export → Add… → Web. Install the export templates if asked.
2. Turn OFF "Thread Support" (the sandbox can't enable cross-origin isolation, so single-threaded exports are required).
3. Set "Export Path" to build/index.html.
4. For phones: Project Settings → Display → Window → Stretch Mode "canvas_items", Aspect "expand".
   Rendering → Renderer "Compatibility" (WebGL 2) works on the most devices.

## Upload
1. Zip the build folder's contents (index.html, .js, .wasm, .pck, icons).
2. On Game Hub set "Needs WebGL" to 2 and "Minimum memory" to 2 GB or more for 3D games.

## Size tips
- Strip unused locales and features with a custom export template, or use "Export PCK/ZIP" to keep code and data apart.
- Compress textures with VRAM compression "Basis Universal".

## What Game Hub accepts
- A .zip with index.html at the top (or inside one folder), or one self-contained .html file.
- Web files only: HTML, JS, CSS, WASM, images, audio, fonts, engine data. No executables or server code.
- Free plan: 25 MB per game. Creator plan: 200 MB.
- The game runs in a sandboxed iframe on its own domain. It can load its own files with relative paths
  (e.g. "assets/player.png", never "/assets/player.png"). It cannot call other websites, open pop-ups,
  use cookies or read anything from Game Hub.
- Mark the game "Works on phones" only if it plays with touch alone.