Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,22 @@
|
||||
// IMPORTANT: `./otel.js` MUST stay the very first import in this file.
|
||||
// The OpenTelemetry NodeSDK can only patch (http, hono, prisma, bullmq,
|
||||
// redis, ...) when it loads before those modules are required for the
|
||||
// first time. The module is a no-op when OTEL_EXPORTER_OTLP_ENDPOINT is
|
||||
// unset, so this contract is safe in every environment.
|
||||
import "./otel.js";
|
||||
|
||||
import { serve } from "@hono/node-server";
|
||||
|
||||
import { app } from "./app.js";
|
||||
import { getApiRuntimeConfig } from "./config.js";
|
||||
import { apiLogger } from "./logger.js";
|
||||
|
||||
serve(
|
||||
{
|
||||
fetch: app.fetch,
|
||||
port: getApiRuntimeConfig().listen.port,
|
||||
},
|
||||
(info) => {
|
||||
apiLogger.info({ port: info.port }, "API listening");
|
||||
},
|
||||
);
|
||||
Reference in new issue
Block a user