fix(core): disable unsupported chrome devtool path

This commit is contained in:
Julien Oculi 2025-05-16 14:17:41 +02:00
parent af1dd59e3a
commit e7bd691d53

View file

@ -3,6 +3,14 @@ import { type State } from './utils.ts'
import { contentType } from 'jsr:@std/media-types@1/content-type'
export const app = new App<State>()
//disable this unsupprted path to prevent static file render error
app.use((ctx) =>
ctx.url.pathname === '/.well-known/appspecific/com.chrome.devtools.json'
? new Response(null, { status: 404 })
: ctx.next()
)
app.use(staticFiles())
//TEMP fix before updating cssBundler middleware