-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing the website on a specific server has link breakage #1941
Comments
I've also noticed this issue on the main site over very slow connections. I can't easily reproduce it locally, though I notice there is a lag before that We should adopt CRA or Gatsby which is the real fix. Meanwhile the workaround is to insert the hash manually. Also, We could also server index.html from the server root instead of redirecting to shields.io as we do now. I think that would fix the problem. |
Hmm, actually, no. I think this was caused by a mistake I made at deploy time, of running I suspect when that happened, the servers got a copy of the previous gh-pages build. This was addressed in #1793 but that hasn't been merged yet. |
To run this requires renaming `private/secret.json` to `private/secret-production.json` in the working tree used for deployment. Goals: - Ensure production secrets are not used in development - Avoid modifying the current working tree - Avoid branch switching: make sure the current ref gets deployed - If something other than `master` is deployed, leave `HEAD` alone; don't reset to `master` - Ensure the build runs before server deploy (#1941) This makes use of Git working trees, which is a relatively new but stable feature in Git. I was initially reluctant to use git worktree, mostly because I don't like adding new tooling that isn't necessary. The other alternative I experimented with was copying or re-cloning to an entirely separate working copy. This was messier and more brittle than using `git worktree`.
Reproduction:
What happens:
What should happen instead:
The text was updated successfully, but these errors were encountered: