@timber-js/app 0.2.0-alpha.55 → 0.2.0-alpha.56
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/server/index.js +4 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/pipeline.d.ts.map +1 -1
- package/package.json +7 -6
- package/src/cli.ts +0 -0
- package/src/server/pipeline.ts +6 -0
- package/LICENSE +0 -8
package/dist/server/index.js
CHANGED
|
@@ -1974,7 +1974,10 @@ function createPipeline(config) {
|
|
|
1974
1974
|
try {
|
|
1975
1975
|
await coerceSegmentParams(match);
|
|
1976
1976
|
} catch (error) {
|
|
1977
|
-
if (error instanceof ParamCoercionError)
|
|
1977
|
+
if (error instanceof ParamCoercionError) {
|
|
1978
|
+
if (config.renderNoMatch) return config.renderNoMatch(req, responseHeaders);
|
|
1979
|
+
return new Response(null, { status: 404 });
|
|
1980
|
+
}
|
|
1978
1981
|
throw error;
|
|
1979
1982
|
}
|
|
1980
1983
|
setSegmentParams(match.params);
|