@rpcbase/server 0.580.0 → 0.582.0

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/index.js CHANGED
@@ -5170,9 +5170,13 @@ async function renderSSR(req, res, dataRoutes) {
5170
5170
  }
5171
5171
  if (routerContext.errors) {
5172
5172
  if (routerContext.statusCode === 404) {
5173
- console.warn(`SSR 404 ${req.method} ${req.originalUrl}`, {
5174
- errors: routerContext.errors
5175
- });
5173
+ if (req.method === "GET" || req.method === "HEAD") {
5174
+ console.warn(`SSR 404 ${req.method} ${req.originalUrl}`);
5175
+ } else {
5176
+ console.warn(`SSR 404 ${req.method} ${req.originalUrl}`, {
5177
+ errors: routerContext.errors
5178
+ });
5179
+ }
5176
5180
  } else {
5177
5181
  const matchesSummary = routerContext.matches?.map((m) => ({
5178
5182
  routeId: m.route.id,