From 0502539b21996b18ad44d04ef31008bd95b2602f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Varga?= Date: Mon, 9 Dec 2024 13:07:03 +0100 Subject: [PATCH] fix: Remove rewrites to enable Firebase use of 404.html as default (#86) - **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. --- transformer-firebase.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/transformer-firebase.js b/transformer-firebase.js index 0179a30..cfd1ae6 100644 --- a/transformer-firebase.js +++ b/transformer-firebase.js @@ -15,12 +15,6 @@ module.exports = (headers) => { '**/.*', '**/node_modules/**', ], - rewrites: [ - { - "source": "**", - "destination": "/404.html" - }, - ], headers: [ { source: '**/*.@(ico|jpg|jpeg|gif|png|webp|js.map|js|css|txt|html)',