merge main into nextjs upgrade

This commit is contained in:
dirtydishes 2026-05-19 14:47:43 -04:00
commit 171cf52518
40 changed files with 2355 additions and 131 deletions

View file

@ -145,6 +145,7 @@ const DeliverPolicySchema = z.enum(["new", "all", "last", "last_per_subject"]);
const envSchema = z.object({
API_PORT: z.coerce.number().int().positive().default(4000),
API_HOST: z.string().min(1).default("127.0.0.1"),
NATS_URL: z.string().default("nats://127.0.0.1:4222"),
CLICKHOUSE_URL: z.string().default("http://127.0.0.1:8123"),
CLICKHOUSE_DATABASE: z.string().default("default"),
@ -1349,6 +1350,7 @@ const run = async () => {
};
const server = Bun.serve<WsData | LiveWsData>({
hostname: env.API_HOST,
port: env.API_PORT,
fetch: async (req: Request, serverRef: any) => {
const url = new URL(req.url);
@ -2045,7 +2047,7 @@ const run = async () => {
}
});
logger.info("api listening", { port: server.port });
logger.info("api listening", { host: env.API_HOST, port: server.port });
const shutdown = async (signal: string) => {
if (state.shutdownPromise) {