UNPKG

nitropack

Version:

Build and Deploy Universal JavaScript Servers

23 lines (22 loc) • 625 B
import "#internal/nitro/virtual/polyfill"; import { nitroApp } from "../app.mjs"; export const localFetch = nitroApp.localFetch; if (process.env.DEBUG) { process.on( "unhandledRejection", (err) => console.error("[nitro] [dev] [unhandledRejection]", err) ); process.on( "uncaughtException", (err) => console.error("[nitro] [dev] [uncaughtException]", err) ); } else { process.on( "unhandledRejection", (err) => console.error("[nitro] [dev] [unhandledRejection] " + err) ); process.on( "uncaughtException", (err) => console.error("[nitro] [dev] [uncaughtException] " + err) ); }