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

fix: Remove rewrites to enable Firebase use of 404.html as default #86

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

warnyul
Copy link
Owner

@warnyul warnyul commented Dec 9, 2024

  • Changes:

    • Removed the rewrites block from transformer-firebase.js.
  • Impact:

    • Ensures Firebase correctly uses 404.html as the default error page.
    • Corrects the returned HTTP status code to 404 instead of 200 for missing routes.
  • Reason:

    • Aligns with Firebase best practices for handling 404 errors with proper status codes.

- **Changes**:
  - Removed the `rewrites` block from `transformer-firebase.js`.

- **Impact**:
  - Ensures Firebase correctly uses `404.html` as the default error page.
  - Corrects the returned HTTP status code to 404 instead of 200 for missing routes.

- **Reason**:
  - Aligns with Firebase best practices for handling 404 errors with proper status codes.
@warnyul warnyul self-assigned this Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

Visit the preview URL for this PR (updated for commit 03de176):

https://bvarga-fe600--pr86-fix-custom-404-page-qp7ceftp.web.app

(expires Mon, 16 Dec 2024 11:45:36 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a3b1098a9eaf0750a134a339972f1df2a3969a8d

@warnyul warnyul merged commit 0502539 into main Dec 9, 2024
2 checks passed
@warnyul warnyul deleted the fix-custom-404-page branch December 9, 2024 12:07
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.

1 participant