Look in src/routes/+layout.ts to see the config to disable ssr. With that line present, nhost throws errors.
src/routes/+layout.ts
The nhost logic is all in lib/nhost/nhost.client.ts
lib/nhost/nhost.client.ts