-
Notifications
You must be signed in to change notification settings - Fork 89
fix: only split extended routes to decrease build times #1731
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
Changes from all commits
948363c
c0b22dd
91ea2a6
ca48537
673dfc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1095,21 +1095,6 @@ Array [ | |
"status": 200, | ||
"to": "/.netlify/functions/___netlify-handler", | ||
}, | ||
Object { | ||
"from": "/api/enterPreview", | ||
"status": 200, | ||
"to": "/.netlify/functions/_api_enterPreview-handler", | ||
}, | ||
Object { | ||
"from": "/api/exitPreview", | ||
"status": 200, | ||
"to": "/.netlify/functions/_api_exitPreview-handler", | ||
}, | ||
Object { | ||
"from": "/api/hello", | ||
"status": 200, | ||
"to": "/.netlify/functions/_api_hello-handler", | ||
}, | ||
Object { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only generate custom rewrites for advanced API routes (background and scheduled functions). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where are we mapping the other API routes to the SSR handler? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I understood of the previous implementation, the /api/* has a handler that catches all other requests. {
from: `${basePath}/api/*`,
to: HANDLER_FUNCTION_PATH,
status: 200,
}, |
||
"from": "/api/hello-background", | ||
"status": 200, | ||
|
@@ -1120,21 +1105,6 @@ Array [ | |
"status": 404, | ||
"to": "/404.html", | ||
}, | ||
Object { | ||
"from": "/api/og", | ||
"status": 200, | ||
"to": "/.netlify/functions/_api_og-handler", | ||
}, | ||
Object { | ||
"from": "/api/shows/:id", | ||
"status": 200, | ||
"to": "/.netlify/functions/_api_shows_id-PARAM-handler", | ||
}, | ||
Object { | ||
"from": "/api/shows/:params/*", | ||
"status": 200, | ||
"to": "/.netlify/functions/_api_shows_params-SPLAT-handler", | ||
}, | ||
Object { | ||
"force": false, | ||
"from": "/broken-image", | ||
|
Uh oh!
There was an error while loading. Please reload this page.