ui improvemnt

This commit is contained in:
Marshal
2026-06-06 21:17:20 +00:00
parent b62ea3f95f
commit 08b46c306f
35 changed files with 2731 additions and 1604 deletions

View File

@@ -18,6 +18,7 @@ async function bootstrap() {
// freight portal (5173), passenger portal (5174), backoffices (5183/5184)
// and any other dev port can call the API with cookies + Authorization.
// For production, restrict `origin` to known FQDNs.
app.enableCors({
origin: true, // reflect request origin
credentials: true,
@@ -52,8 +53,10 @@ async function bootstrap() {
SwaggerModule.setup("api/docs", app, document);
const port = parseInt(process.env.PORT ?? "3001", 10);
await app.listen(port, "0.0.0.0");
// await app.listen(port)
// await app.listen(port, "0.0.0.0");
await app.listen(
port)
// eslint-disable-next-line no-console
console.log(`[freight-api] listening on port ${port}`);
}