Sample.app

Supported File Types

File types and assets that Sample.app serves.

Sample.app only serves recognized static file types. Files with unsupported extensions are blocked.

Web assets

These core file types are served with appropriate Content-Type headers and caching:

ExtensionContent-TypeNotes
.htmltext/htmlEntry point for all routes. index.html is served for SPA fallback.
.csstext/cssStylesheets, including source maps (.css.map).
.jsapplication/javascriptScripts, including source maps (.js.map).
.mjsapplication/javascriptES modules.
.jsonapplication/jsonData files, manifests, configuration.
.xmlapplication/xmlSitemaps, RSS feeds, and other XML data.
.txttext/plainPlain text files, robots.txt.
.wasmapplication/wasmWebAssembly modules.

Images

ExtensionContent-TypeNotes
.pngimage/pngLossless raster images.
.jpg / .jpegimage/jpegLossy raster images.
.gifimage/gifAnimated and static GIFs.
.svgimage/svg+xmlVector graphics. Can be inlined or served as files.
.webpimage/webpModern lossy/lossless format. Recommended for photos.
.avifimage/avifNext-gen format with excellent compression.
.icoimage/x-iconFavicons.

Fonts

ExtensionContent-TypeNotes
.wofffont/woffWeb Open Font Format.
.woff2font/woff2WOFF2—best compression. Recommended.
.ttffont/ttfTrueType fonts.
.otffont/otfOpenType fonts.
.eotapplication/vnd.ms-fontobjectLegacy Internet Explorer font format.

Media

ExtensionContent-TypeNotes
.mp4video/mp4Video files.
.webmvideo/webmWeb-optimized video.
.mp3audio/mpegAudio files.
.oggaudio/oggOpen audio format.

Documents

ExtensionContent-TypeNotes
.pdfapplication/pdfPDF documents.
.csvtext/csvComma-separated data.

File types not listed above are blocked. If you need support for an additional type, reach out to the team.

Bundle size limits

All files in your output directory count toward the size limit. The maximum compressed archive size is 100 MB.

Large media files can eat into your quota quickly. Consider hosting videos and large images on a dedicated CDN.

Tips for optimizing your bundle

On this page