Skip to content
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

docs(v2): GH pages: recommend using trailingSlash #5033

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jun 22, 2021

Motivation

Using the legacy trailingSlash: undefined behavior is not recommended with GH pages due to the reconfigurable behavior of GH pages to add a trailing slash with a server redirect. This is better to use set explicit value (either true or false) instead of using the legacy retrocompatible behavior.

Also adding a warning to the deploy script.

Note: later we may remove this because we could use trailingSlash: false as a default (after explicitly deprecating "undefined" legacy behavior). (but it might be a problem for deploying on Vercel without the cleanUrl option: see slorber/trailing-slash-guide#1)

@slorber slorber requested a review from lex111 as a code owner June 22, 2021 09:08
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 22, 2021
@netlify
Copy link

netlify bot commented Jun 22, 2021

✔️ [V2]

🔨 Explore the source changes: 950dbb7

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60d1a89b74196a0007b12056

😎 Browse the preview: https://deploy-preview-5033--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 66
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5033--docusaurus-2.netlify.app/

@slorber slorber added the pr: documentation This PR works on the website or other text documents in the repo. label Jun 22, 2021
@github-actions
Copy link

Size Change: 0 B

Total Size: 569 kB

ℹ️ View Unchanged
Filename Size
website/build/assets/css/styles.********.css 87.8 kB
website/build/assets/js/main.********.js 385 kB
website/build/blog/2017/12/14/introducing-docusaurus/index.html 65.8 kB
website/build/docs/introduction/index.html 235 B
website/build/index.html 30.5 kB

compressed-size-action

@slorber slorber merged commit 41eaa69 into master Jun 22, 2021
@slorber slorber deleted the slorber/gh-recommend-trailingSlash-false branch August 17, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: documentation This PR works on the website or other text documents in the repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants