Skip to content

docs(migrating-5): add section about express.static dotfiles defaulting to ignore (#1987)#1989

Merged
bjohansebas merged 3 commits intoexpressjs:gh-pagesfrom
VishalRMahajan:docs/migration-guide-dotfiles-static
Aug 1, 2025
Merged

docs(migrating-5): add section about express.static dotfiles defaulting to ignore (#1987)#1989
bjohansebas merged 3 commits intoexpressjs:gh-pagesfrom
VishalRMahajan:docs/migration-guide-dotfiles-static

Conversation

@VishalRMahajan
Copy link
Copy Markdown
Contributor

@VishalRMahajan VishalRMahajan commented Jul 26, 2025

Summary

This PR updates the "Migrating to Express 5" guide to document the breaking change where express.static's dotfiles option now defaults to "ignore".

Fixes Issue

Fixes #1987

Changes

  • Added a new section to migrating-5.md explaining the dotfiles default change.
  • Provided example code for migration from Express 4 to Express 5.
image

@VishalRMahajan VishalRMahajan requested a review from a team as a code owner July 26, 2025 07:20
@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 26, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit defc4b9
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/688d5094995b330008440c98
😎 Deploy Preview https://deploy-preview-1989--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@VishalRMahajan VishalRMahajan marked this pull request as draft July 26, 2025 07:22
@VishalRMahajan VishalRMahajan marked this pull request as ready for review July 26, 2025 07:27
Comment thread en/guide/migrating-5.md Outdated
Copy link
Copy Markdown
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices ⚠️ SEO score unreliable
/ mobile 🔴 61 🟢 100 🟢 96 🔴 63
/en/blog/posts.html mobile 🔴 72 🟢 96 🟢 96 🔴 63
/en/5x/api.html mobile 🔴 66 🟢 95 🟢 96 🔴 63
/ desktop 🟢 92 🟢 100 🟢 96 🔴 63
/en/blog/posts.html desktop 🟢 95 🟢 96 🟢 96 🔴 63
/en/5x/api.html desktop 🟢 98 🟢 95 🟢 96 🔴 63

@bjohansebas bjohansebas merged commit b8d426e into expressjs:gh-pages Aug 1, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration guide should mention the dotfiles default change in express.static

2 participants