Remove File Extensions from Static Site

Attempting to migrate from Vercel to Fly. Vercel’s static sites use a configuration file (they have a serve npm package that works similar to their deployments in terms of configuration), and in that file (just JSON), you can specific that you want trailing slashes and clean URLs, which allows for URLs to be:

/folder/filename/

instead of:

/folder/filename.html

Is there a way to mimic this in Fly? It looks like when I launch a fresh static site, it defaults to the pierrezemb/gostatic Docker image. Does there need to be an adjustment to this file (I’m not seeing any configuration options like this in the gostatic GitHub), or do I need to use nginx or a custom Docker image? It’s basically just a URL rewrite.

Thoughts?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.