import fs from "node:fs";
import path from "node:path";
import { startServer } from "./base.js";
export async function startObservabilityBlockletServer(options) {
    const { app, server } = await startServer(options);
    app.get("/api/static/model-prices.json", (_req, res) => {
        res.set("Cache-Control", "public, max-age=86400, immutable");
        res.type("application/javascript");
        res.send(`window._modelPricesAndContextWindow = ${fs.readFileSync(path.join(__dirname, "./utils/modelPricesAndContextWindow.json"), "utf8")}`);
    });
    return { app, server };
}
