#Returning Imported HTML Through Serve Function

1 messages · Page 1 of 1 (latest)

narrow bison
#

I am trying to use a function in Bun.serve() so I can add logic that runs but when I return the imported html but it doesn't work. When I use new Response() or Bun.file() to get it, the scripts and links inside the html file don't work. How do I get around this?

#

sorry if I respond late I might have went to sleep

ocean imp
#

Only way is either build beforehand or fetch localhost (have it in another route)

narrow bison
#

How do I close this

#

Nvm I got it