You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`apiUrl`|`cedar.toml``[web]` section | — | Tells the browser and web dev server where the API lives |`/.api/functions`|
141
+
|`--apiRootPath`| CLI flag on `yarn cedar build --ud`| Highest | Controls the route prefix baked into the UD server entry |`/.api/functions` (deploy), not set (local dev) |
142
+
|`CEDAR_API_ROOT_PATH`| Environment variable | Overrides plugin options | Overrides `cedarUniversalDeployPlugin` options without modifying vite config |`/.api/functions`|
143
+
|`cedarUniversalDeployPlugin({ apiRootPath })`| Vite config | Lowest | Configure the route prefix in the plugin options | — |
144
+
72
145
## How it works
73
146
74
147
The `--ud` build step (`yarn cedar build --ud`) produces a server entry at `api/dist/ud/index.js` that exports:
0 commit comments