picosh / pico

hacker labs - open source and managed web services leveraging SSH
https://pico.sh
MIT License
757 stars 26 forks source link

[pgs.sh] Custom headers #82

Closed AverageHelper closed 4 months ago

AverageHelper commented 4 months ago

I see pgs.sh supports a special _redirects file to configure custom redirect paths. That's super neat!

Could a special _headers file be used to configure custom response headers, similar to what Netlify offers?

neurosnap commented 4 months ago

Hi, thanks for posting!

Yes we should probably support a _headers file. I'm wondering if we should deprecate _redirects and just go all in on a single configuration file, thoughts?

AverageHelper commented 4 months ago

I don't much care either way. Personally I'd prefer a _headers file, since that's what I'm used to from Netlify and Cloudflare Pages, but I'm not opposed to learning a new system for the same behavior if need be.

neurosnap commented 4 months ago

Got it. We will commit to implementing a _headers file for now. I'll update this ticket with progress.

neurosnap commented 4 months ago

This feature has been deployed. Please try it out and let me know if it does or does not work properly. Thanks again!

AverageHelper commented 4 months ago

It seems to work! Thank you very much!