mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 22:01:37 +00:00
17 lines
No EOL
459 B
JavaScript
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 }; |