• 3 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 7th, 2023

help-circle

  • Thanks! I kind of figured it out after a lot of searching and trial and error.

    I removed all but one page, and removed all content on that page. In website settings, there’s an option for “code injection”. This is where I pasted all my code, but I had to do it in a weird way.

    I built the website with React, and each page was it’s own component. I had to build the project, and then take all of the JS created from the build process and wrap them in script tags, and wrap the CSS in style tags. Then I had to make a div with an id of root within the code injection body. Afterwards, I copied and pasted all the JS and CSS under the root div.

    It’s not perfect and I need to tweak some things, but the site is 90% intact.