Skip to content

Commit 0502539

Browse files
authored
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.
1 parent 68e8ba9 commit 0502539

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

transformer-firebase.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ module.exports = (headers) => {
1515
'**/.*',
1616
'**/node_modules/**',
1717
],
18-
rewrites: [
19-
{
20-
"source": "**",
21-
"destination": "/404.html"
22-
},
23-
],
2418
headers: [
2519
{
2620
source: '**/*.@(ico|jpg|jpeg|gif|png|webp|js.map|js|css|txt|html)',

0 commit comments

Comments
 (0)