Skip to content

HAMUR_E1099: A route middleware has a .server suffix

A route middleware has a .server suffix. Error HAMUR_E1099 belongs to hamur, scan, build and dev (1001 – 1999). It is retired: nothing writes it any more.

Message

text
HAMUR_E1099 a route middleware runs in the browser on every client navigation, so a server-only one guards only the first load; check the request in server middleware (server/index.ts) or in the handler, or drop .server to run it on both sides

Cause

A route middleware file has a .server suffix. A route middleware runs in the browser on every client navigation, so a server-only one guards only the first load.

Fix

Check the request in server middleware or in the handler, or drop .server to run it on both sides.