mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
|
import { create } from "../dist/server";
|
||
|
|
||
|
const server = create({ isDev: process.env.NODE_ENV === "development" });
|
||
|
|
||
|
async function index(req, res) {
|
||
|
await server.ready();
|
||
|
server.server.emit("request", req, res);
|
||
|
}
|
||
|
|
||
|
export default index;
|