✅ What Works
Running the command:
npx tileserver-gl --mbtiles africa.mbtiles
->starts without errors.
Accessing the map directly at:
->https://*****:444/styles/basic-preview/#4/-11.26926/19.73037
works perfectly.
Removing the index.html file makes the server stable.
❌ What Fails
Navigating to the base URL (https://*****:444/) stops the CMD/server suddenly with no clear error message.
When I embed the map in my website, it also crashes the server (maybe because it tries to load the homepage?).
🛠️ Tried Solutions
Installed VC_redist.x64 (Microsoft Visual C++ 2015-2022 - version 14.40.33810).
Removing the HTML homepage avoids the crash.
ℹ️ Additional Info
Server OS: Windows Server 2022
Node.js and npm are correctly installed.
Issue only happens on this one machine.
💬 Question
How can I prevent tileserver-gl from crashing when accessing the homepage (/) or when using it inside my website?