heroku / heroku-buildpack-static

[DEPRECATED] Heroku buildpack for handling static sites and single page web apps
MIT License
674 stars 427 forks source link

add /embeds path for iframes #229

Closed dnsbty closed 2 years ago

dnsbty commented 2 years ago

This adds a new /embeds path for any iframe widgets we want to use in the future. This adds a rewrite so that any path like /embeds/registration will be rewritten to fetch the HTML file from the build directory with the same name as the second part of the path, so in this case registration.html. This would allow us to create other embeddable widgets in the future by following the same pattern of adding another webpack entrypoint like I did for the registration iframe.

dnsbty commented 2 years ago

This was supposed to be a PR on a fork rather than this repo. Sorry!