Comments (2)
Thanks for the amazing explanation 👍 !
I don't think we really need to fix anything here. At best we could ignore the error, or emit a more user-friendly error message.
Yes this is what I expect, having either a more friendly error, or ignore it.
But it looks good enough to me honestly, because you figured out that you had twice the same redirect already. The question is: why did you add twice the same redirect in the first place? Have you tried with only one redirect, and what motivated you to add a second redirect?
No idea; I arrived later after it was like this, and the person who did that is not here anymore.
from docusaurus.
This is most likely because your file system is case-insensitive, unlike your CI
The 2nd redirect file can only be created unless the file system is case sensitive and allow both files to exist.
What would you expect to happen, for both environments, in this case?
I'd recommend against emitting twice the file. Many hosts will support serving static files in a case-insensitive fashion and just emitting lower-case redirect files should be enough.
For example Netlify:
GitHub Pages:
- https://tutorial.docusaurus.io/docs/tutorial-basics/create-a-page
- https://tutorial.docusaurus.io/docs/tutorial-basics/CREATE-a-page
I think some hosts like Vercel are case sensitive. But the truth is, you shouldn't use client directs with any host that support server redirects instead.
Server redirects are always a better option, and to my knowledge only GitHub pages do not support server directs, so the only good reason to use client directs is if you deploy to GitHub Pages (or similarly very limited host), which is case insensitive.
Note docusaurus serve
is also case insensitive so if you use it for self-hosting, no need to duplicate your redirects.
For these reasons I'm going to close for now, but still curious to see what you expect from Docusaurus in this case.
I don't think we really need to fix anything here. At best we could ignore the error, or emit a more user-friendly error message.
But it looks good enough to me honestly, because you figured out that you had twice the same redirect already. The question is: why did you add twice the same redirect in the first place? Have you tried with only one redirect, and what motivated you to add a second redirect?
from docusaurus.
Related Issues (20)
- Unable to remove self referencing hreflang tags HOT 1
- Support separate config for mermaid dark mode HOT 2
- Content moderation for your Canny board (feature requests) HOT 1
- <codeblock> with variable substitution HOT 6
- Setting the `current` version's path to `/` freezes `docsVersionDropdown` HOT 3
- MDX: for JSX {children} generates extra <p> tag HOT 1
- CSS: [data-theme='dark'] not affects after build HOT 1
- Generates Next Page link to unlisted doc from prev Doc (from prev folder) HOT 2
- Custom Admonition Icon: Resize and Center Vertically HOT 3
- Table Of Contents: Allow user to collapse Table of Contents
- CSS priorities are different between development and production environments HOT 2
- Sidebar generation will run `Globby` in the `node_modules` folder HOT 4
- Blog description links broken HOT 5
- plugin-content-blog: add `rejectPostsWithoutTruncate` option HOT 5
- Pagefind plugin for local search HOT 1
- Schema.org shows webpages as breadcrumbs HOT 2
- Navbar dropdown can't render correctly HOT 1
- Markdown admonition inside TabItem causes MDX compilation to fail HOT 5
- Hash navigation breaks in 3.4.0 with some plugins HOT 1
- Enforcing dark mode not working in production HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusaurus.