Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

redirects with external url don't work with code 200 #42

Closed nekomimi.pet
Closed opened by nekomimi.pet

on the docs for redirects, theres an example for this like:

# API proxy
/api/*    https://api.example.com/:splat    200

but doing a similar setup for my site with this redirect didn't work:

/.well-known/webfinger?resource=:resource    https://webfinger.madoka-winter.workers.dev/?resource=:resource    200

looking into the behavior of apps/hosting-service/src/lib/file-serving.ts it looks like external links with a 200 code get parsed as files instead of links, only 301/302 can be external

thanks for flagging. i have it fixed and will have it deployed soon

live now and fixed

Sign up or Sign in to add to the discussion.