0.3.0
A wrapper for std/file_server that falls back to index.html (for dyanmic deep links)
Repository
Current version released
2 years ago
Dependencies
std
Versions
spa_server
Deno std library has a handy file_server that can be used by Deno Deploy for Static Sites very easily
deployctl deploy --prod --project=$PROJECT_NAME https://deno.land/std@0.171.0/http/file_server.ts
This fails if you are using deep links for dynamic pages. There is no file backing http://example.com/users/whoever
; the SPA is expected to handle rendering.
This project is a tiny wrapper that falls back to the index in cases where the file is not found.