18 lines
497 B
JavaScript
18 lines
497 B
JavaScript
import grabAppPort from "../../utils/grab-app-port";
|
|
import isDevelopment from "../../utils/is-development";
|
|
import bunextRequestHandler from "./bunext-req-handler";
|
|
export default async function (params) {
|
|
const port = grabAppPort();
|
|
const is_dev = isDevelopment();
|
|
return {
|
|
async fetch(req, server) {
|
|
return await bunextRequestHandler({ req });
|
|
},
|
|
port,
|
|
// idleTimeout: 0,
|
|
development: {
|
|
hmr: true,
|
|
},
|
|
};
|
|
}
|