# Development server configuration for `trunk serve`. # The SPA runs on :8000 and proxies API, auth and websocket traffic to the # backend on :8080 so the session cookie works without CORS. [serve] port = 8000 [[proxy]] rewrite = "/api" backend = "http://127.0.0.1:8080/api" [[proxy]] rewrite = "/auth" backend = "http://127.0.0.1:8080/auth" [[proxy]] rewrite = "/ws" backend = "http://127.0.0.1:8080/ws" ws = true