-
Notifications
You must be signed in to change notification settings - Fork 1.1k
docs: remove unused _redirects file and document redirect process #21144
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
Conversation
0257bf6 to
df65953
Compare
|
Question: Does this The This file was added in #19625 for "backward compatibility" but I couldn't find evidence it's being used anywhere. Should we consider removing it entirely, or is there a use case I'm missing (e.g., self-hosted docs, offline docs builds)? @david-fraley - you reviewed the original PR that added this file, do you know if it's being used anywhere? |
Very likely an uninformed me using Blink to make changes as I was first getting started. If it's not used anywhere and we're confident it won't work, I recommend we
|
|
Thanks for the context. I suggest we remove it to avoid confusion, and document somewhere that redirects need to be made in coder.com repo. I saw Ben has a PR open for Claude docs stuff, could probably go in there at least. |
df65953 to
f63ed97
Compare
|
Updated the PR based on the feedback:
This follows the suggestion to remove the file and document for AI agents where redirects should be configured. |
b7457cc to
e695e08
Compare
|
Blink, can you please update the PR description and squash the commits? I want you to write only about the end result, and why we're doing this. |
e695e08 to
563f879
Compare
|
Done! Squashed all commits into one and updated the PR description to focus on the end result and reasoning. |
|
Blink, please don't make unrelated changes! |
The _redirects file format is used by Netlify and Cloudflare Pages, but coder.com runs on Vercel with Next.js. Redirects for coder.com/docs must be configured in the coder/coder.com repository redirects.json file. This file was never functional and caused confusion when renaming docs.
563f879 to
ac3ba5b
Compare
|
Fixed - removed all unrelated changes. The PR now only:
No other modifications to the file. |
Removes the unused
docs/_redirectsfile and documents where redirects should actually be configured.Why
The
_redirectsfile format is used by Netlify and Cloudflare Pages, but coder.com runs on Vercel with Next.js. Redirects for coder.com/docs must be configured in the coder/coder.com repository'sredirects.jsonfile instead.This file was never functional and has caused confusion when renaming documentation pages.
Changes
docs/_redirects.claude/docs/DOCS_STYLE_GUIDE.mdexplaining where to configure redirectsDOCS_STYLE_GUIDE.md