Routes
A route is the stable name routeup gives a local service. Locally, routeup maps it to https://<route>.localhost.
Valid names
Section titled “Valid names”Valid route names are DNS-style labels joined with dots:
example-appapi.example-appdocs.example-appInvalid examples:
.example-appexample-app.api..example-appmy_appexample-app.localhostexample-app.routeup.devRoute names are lowercased. Each label may contain ASCII letters, digits, and hyphens, but not leading or trailing hyphens.
Local hostnames
Section titled “Local hostnames”routeup appends .localhost for local use:
example-app -> https://example-app.localhostapi.example-app -> https://api.example-app.localhostThe .localhost suffix is not part of the route name.
Public hostnames
Section titled “Public hostnames”Every public hostname is one label under the namespace granted by the server:
example-app -> example-appapi.example-app -> api-example-appDotted route names remain valid locally. When a dotted route is exposed, routeup
replaces dots with hyphens for the public label: api.example-app stays
https://api.example-app.localhost locally and requests public label
api-example-app automatically.
The server places that label under the granted namespace base:
no token https://api-example-app.try.routeup.devroot token https://api-example-app.routeup.devnamespace https://api-example-app.mukul.routeup.devName resolution
Section titled “Name resolution”routeup serve resolves the name in this order:
- Positional argument, such as
routeup serve example-app. ROUTEUP_NAME.namefromrouteup.jsonor thepackage.jsonrouteupblock.- The working-directory basename.
Every explicit positional name is literal. With config name example-app,
routeup serve api serves route api; use routeup serve api.example-app when
that exact dotted route is wanted.