https://discord.cloudflare.com logo
Title
s

stukennedy

05/25/2023, 9:38 AM
EDIT: I figured out the problem ... the _middleware method that I have implemented to handle the layout of my routes was being triggered on the websocket stuff. SOLUTION: I renamed my
websocket.ts
to
_websocket.ts
and added a check for any route that starts with '_' in my middleware, in those cases it just does a
next()
I also needed to remove
hx-boost
from my app, this is HTMX that does some fancy dynamic page fetching stuff. I've got it working locally now, let's see if I can get it working on Cloudflare itself.