Skip to content

Commit b09653f

Browse files
authored
Feat/base path (#107)
* Updating to v1.2.6 * Added base path * Update documentation
1 parent d4fd0e3 commit b09653f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/deployment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Available environment variables:
6666
| Environment variable | Description | Default |
6767
| ---------------------------- | ------------------------------------------------------------- | ------- |
6868
| `REACT_APP_METAFLOW_SERVICE` | UI service API endpoint (cannot be changed without a rebuild) | `/api` |
69+
| `REACT_APP_BASE_PATH` | Base path override for UI (e.g. `/some/new/path`) | `` |
6970

7071
## 3. Reverse proxy
7172

plugin-api/dev/PluginDevEnvironment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const PluginContent: React.FC<Props> = ({
4242
slot={slot}
4343
baseurl={baseurl}
4444
resourceParams={{
45-
flow_id: 'Dev flow',
45+
flow_id: 'Devflow',
4646
run_number: '1',
4747
step_name: 'start',
4848
task_id: '1',

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const App: React.FC = () => {
4646
<PluginsProvider>
4747
<LoggingProvider>
4848
<GlobalStyle />
49-
<Router>
49+
<Router basename={process.env.REACT_APP_BASE_PATH}>
5050
<QueryParamProvider ReactRouterRoute={Route}>
5151
{flagsReceived ? (
5252
<>

0 commit comments

Comments
 (0)