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.
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 caseregistration.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.