@remix-run/router 0.0.0-experimental-e7ce8959 → 0.0.0-experimental-add6f8aa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/router.cjs.js +2 -2
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.js +2 -2
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +2 -2
- package/dist/router.umd.js.map +1 -1
- package/dist/router.umd.min.js +2 -2
- package/dist/router.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/router.ts +1 -1
package/dist/router.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/router v0.0.0-experimental-
|
|
2
|
+
* @remix-run/router v0.0.0-experimental-add6f8aa
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -3187,7 +3187,7 @@ function createStaticHandler(routes, opts) {
|
|
|
3187
3187
|
*/
|
|
3188
3188
|
function getStaticContextFromError(routes, context, error) {
|
|
3189
3189
|
let newContext = _extends({}, context, {
|
|
3190
|
-
statusCode: 500,
|
|
3190
|
+
statusCode: isRouteErrorResponse(error) ? error.status : 500,
|
|
3191
3191
|
errors: {
|
|
3192
3192
|
[context._deepestRenderedBoundaryId || routes[0].id]: error
|
|
3193
3193
|
}
|