trailing-slash-guide icon indicating copy to clipboard operation
trailing-slash-guide copied to clipboard

Document self-hosted HTTP servers

Open Josh-Cena opened this issue 4 years ago • 6 comments

Josh-Cena avatar Aug 14 '21 04:08 Josh-Cena

@Josh-Cena is attempting to deploy a commit to the Trailing Slash Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 14 '21 04:08 vercel[bot]

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

vercel-default – ./static

🔍 Inspect: https://vercel.com/trailing-slash-team/vercel-default/CQLK9K9jdxjSKpv5czBNvXm9Si6g
✅ Preview: https://vercel-default-git-fork-josh-cena-self-host-trailing-slash-team.vercel.app

vercel[bot] avatar Aug 14 '21 04:08 vercel[bot]

@slorber Maybe you should enforce squash-merging by unchecking the other two options in "Merge button"?

Josh-Cena avatar Aug 14 '21 04:08 Josh-Cena

@slorber Maybe you should enforce squash-merging by unchecking the other two options in "Merge button"?

Done

That looks good to me.

I guess we could add self-hosted software with their default settings in a table in the repo readme? maybe separated from the CDN services

slorber avatar Aug 17 '21 14:08 slorber

Thanks for making this thread. I am a little concerned about having issues with running on a "bare" http server like python3 -m http.server , this "bare" server appears to also have the most similar behavior to an amazon s3+cloudflare that is setup, but the python3 -m http.server is probably much more easily setup for testing.

I thought I had something working with https://github.com/facebook/docusaurus/issues/5570

If anyone has ideas about this, a simple repro is here

https://github.com/cmdcolin/docusaurus-nav-issue

I thought the prepare script in https://github.com/slorber/trailing-slash-guide/blob/main/docs/Solutions.md#post-process-your-static-site-generator-output-before-deployment was maybe helping but it seemed to maybe have issue still

One possible solution is adding

trailingSlashes:true

And then making all my doc links have a ../

[ex1](../ex1)

cmdcolin avatar Sep 14 '21 15:09 cmdcolin

@cmdcolin I'm still navigating through the mist of HTTP server options out there :P Some seem to have dependency on others, and most have pretty identical behaviors. I'll try my best to make things illustrative and concise

Josh-Cena avatar Sep 14 '21 16:09 Josh-Cena