<- All updates
Hosting
Single-file URLs go straight to the file
Deploy one file and its bare deployment URL now serves that file directly.
- Released
- Area
- Hosting
When a deployment contains one file, you no longer need to add its filename to the URL. Deploy resume.html, for example, and the bare deployment URL opens it:
npx @getflat/cli deploy ./resume.html
The original /resume.html path still works, so existing links do not break. Flat uses the file extension for its content type and keeps the same immutable caching as other deployment files.
This applies to any single-file deployment, including HTML pages, PDFs, and slide decks.