Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

finally found how to turn off HMR

Changed files
+12 -6
src
+2
src/index.ts
··· 61 61 export const app = new Elysia({ 62 62 serve: { 63 63 maxPayloadLength: 1024 * 1024 * 128 * 3, 64 + development: Bun.env.NODE_ENV !== 'production' ? true : false, 65 + id: Bun.env.NODE_ENV !== 'production' ? undefined : null, 64 66 } 65 67 }) 66 68 // Observability middleware
+10 -6
src/lib/observability.ts
··· 312 312 service 313 313 ) 314 314 315 - logCollector.error( 316 - `Request failed: ${request.method} ${url.pathname}`, 317 - service, 318 - error, 319 - { statusCode: set.status || 500 } 320 - ) 315 + // Don't log 404 errors 316 + const statusCode = set.status || 500 317 + if (statusCode !== 404) { 318 + logCollector.error( 319 + `Request failed: ${request.method} ${url.pathname}`, 320 + service, 321 + error, 322 + { statusCode } 323 + ) 324 + } 321 325 } 322 326 } 323 327 }