The Hosting Check¶
Before every upload, the gamefuse command checks that your folder will run in a browser. You can run the check alone, without uploading:
The check has two steps.
| Step | The command | The dashboard (zip upload) | The hosting server |
|---|---|---|---|
| 1. File checks | Yes | Yes | Yes, again on every upload |
| 2. A real browser run | Yes | No | No |
If any check fails, nothing is uploaded and the game that was live stays live.
Step 1: file checks¶
| Check | What fails | How to fix it |
|---|---|---|
index.html at the top |
There is no index.html in the folder itself (it is in a subfolder, or missing). |
Upload the folder that holds index.html. When zipping, zip the files inside the folder, not the folder. |
| This looks like your project folder | The folder has a package.json and no index.html. |
Build first, then upload your build folder, usually dist or build. |
| Size | The total size, a single file, or the number of files is over your plan. | Make files smaller (compress textures and sound, turn on compression in Unity), remove files the game does not use, or move to a bigger plan. See Limits and Plans. |
| Missing files | A script, style or image that index.html points to is not in the folder. |
Check the path in index.html. Make sure the build copied the file. |
| File names must match exactly | index.html asks for sprite.png but the file is Sprite.PNG. |
Rename the file, or fix the name in your code, so the capitals match. |
| Links to your own computer | A file links to localhost, 127.0.0.1 or file://. |
Use a path inside your game (such as /assets/level1.json) or a real web address. |
| Private files | The folder holds .env, .git, node_modules or a private key. |
Remove them. They should never be public. Upload the build folder, not the project folder. |
| Source maps | .map files are in the folder. |
A warning only. They show your source code to anyone who looks. Turn them off in your build if you do not want that. |
File names must match exactly¶
Your computer may treat Sprite.PNG and sprite.png as the same file. A web server does not. A game that works on your Mac can show missing images when hosted. The check finds this before players do.
Step 2: a real browser run¶
The command serves your folder on your computer and opens it in a hidden Chrome for a few seconds.
| Result | Meaning | How to fix it |
|---|---|---|
| Fails: a file is missing | The game asked for a file that is not in the folder. | The message names the file. Add it, or fix the path. |
| Fails: an error on load | The page threw a JavaScript error while loading. | The message shows the error. Open the build locally with a simple web server and check the browser console. |
| Note: graphics did not start | The hidden Chrome draws WebGL in software. If a game still cannot start WebGL there, the command notes it and uploads anyway, since players' browsers have graphics. | Nothing to do. |
| Fails: the page is blank | Nothing was drawn: no canvas, and the page body is empty. | Make sure index.html loads your game's script. Check that you uploaded the build, not the source. |
| Warning: another site did not answer | The game loads something from another site that is down or blocked. | Only a warning. Check the address if it should work. |
If Chrome is not installed, this step is skipped with a note. To skip it on purpose, for example on a build server:
Uploads from the dashboard run step 1 only. Use the command for the full check.