Frontends

Mount another Frontend at a path

Changed on

Serves path_prefix and everything under it on this Frontend's hostnames from another Frontend in the same Project. The path is forwarded unchanged, so the mounted Frontend must serve its pages under the prefix (page directories or a matching basePath). Its root /_next/static files and /_next/image requests are sent to it too. A Frontend may be mounted at several prefixes. Function and Frontend routes share one path namespace and the 64-route limit; the most specific prefix wins. A mounted Frontend's own routes do not apply to requests it receives through a route. The route applies to every hostname that resolves to this Frontend, including generated, custom-domain, and local hostnames. While the mounted Frontend has no active deployment, its paths answer 502, as its own hostname does.

post/projects/{id}/frontends/{frontendId}/frontend-routes

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

frontendId, string uuid required

Frontend ID

Request body

CreateFrontendRouteRequest required
target_frontend_id, string uuid required

The Frontend to mount. It must be another Frontend in the Project.

path_prefix, string required

Response

Frontend route created

FrontendRoute required

A path prefix on this Frontend's hostnames served by another Frontend in the Project, the mounted Frontend. Paths are forwarded unchanged, so the mounted Frontend serves its prefix as real pages (page directories or a matching basePath).

id, string uuid required
project_id, string uuid required
frontend_id, string uuid required

The Frontend whose hostnames serve the route

target_frontend_id, string uuid required

The mounted Frontend

path_prefix, string required
created_at, string date-time required
updated_at, string date-time required

Changes