fix(core): disable unsupported chrome devtool path
This commit is contained in:
parent
af1dd59e3a
commit
e7bd691d53
8
main.ts
8
main.ts
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue