Hey, so I haven't added redirects to our handler yet. As of right now we are calling specific files, so technicallyweb3.eth/index.html will work, but technicallyweb3.eth/ will not. I can use the DEFINE function to set a header for the / path to return a 301 to /index.html but the handler currently only returns the / 301 response.
To do this I would probably do something like this:
Deploy a contract
Write some html to /index.html using PUT
Write 301 & /index.html to / using DEFINE
Add in parameter "redirect" like in the javascript fetch function with values follow (default), manual and error.
Modify fetch function to re-execute the request to the new location.
Hey, so I haven't added redirects to our handler yet. As of right now we are calling specific files, so technicallyweb3.eth/index.html will work, but technicallyweb3.eth/ will not. I can use the DEFINE function to set a header for the / path to return a 301 to /index.html but the handler currently only returns the / 301 response.
To do this I would probably do something like this:
Deploy a contract
Write some html to /index.html using PUT
Write 301 & /index.html to / using DEFINE
Add in parameter "redirect" like in the javascript fetch function with values follow (default), manual and error.
Modify fetch function to re-execute the request to the new location.