audiobookshelf/client/nitro.entry.js
2023-05-04 23:52:36 +02:00

17 lines
No EOL
459 B
JavaScript

import '#internal/nitro/virtual/polyfill'
const nitroApp = useNitroApp()
const listener = toNodeListener(nitroApp.h3App)
const handler = listener
{
process.on(
"unhandledRejection",
(err) => console.error("[nitro] [dev] [unhandledRejection] " + err)
);
process.on(
"uncaughtException",
(err) => console.error("[nitro] [dev] [uncaughtException] " + err)
);
}
export { useRuntimeConfig, getRouteRules, handler, listener, useNitroApp };