1234567891011121314 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- const express = require("express");
- const app = express();
- app.get("/backend.yaml", (req, res) => {
- res.setHeader("content-type", "text/yaml");
- res.send(process.env.BACKEND);
- });
- let port = 8080;
- if (process.env.ADMIN_PORT) {
- port = Number.parseInt(process.env.ADMIN_PORT);
- }
- console.error("Serving at port", port);
- app.listen(port);
|