3 ms·
Nice! In the past I've also rendered an OSM map[1] with this approach and as you mention caching/CDN should make it suitable for production. [1]: https://gist.
by steve-chavez 5y ago
Nice! In the past I've also rendered an OSM map[1] with this approach and as you mention caching/CDN should make it suitable for production.
[1]: https://gist.github.com/steve-chavez/c1435a8c9583d2524e87e4f7c378d322 https://gist.github.com/steve-chavez/c1435a8c9583d2524e87e4f...
- nileshtrivedi 5y agoPretty cool! Was the function being named "index.html", made it available on /rpc instead of /rpc/index.html ?
- steve-chavez 5y agoAh, no - PostgREST doesn't have that kind of convention builtin(default to searching an index.html on path). I'll update the gist and change the function to `map.html` to avoid any confusion.