Hi All!
I'm trying to figure out creative ways to insert HTML code into the <head></head> section of a index.html page. The index.html is part of the asset upload when I use wrangler.
I have some javascript that's in the worker code, that's supposed to read the index.html file and then rewrite certain HTML sections but it doesn't seem to be doing this.
Can this be done? Do I need to have a network listener that specifically looks for / and /index.html and then runs a list of functions that rewrite the html?
I'm a bit lost. Any guidance is most welcome!
TIA