fix: Docker build time was very slow on a tiny change (#4559)

Co-authored-by: sedghi <ar.sedghi@gmail.com>
This commit is contained in:
Bill Wallaceandsedghi authored and GitHub committed 2025-01-02 14:46:53 -05:00
1 parent ae48f50037
commit 7e43b2f768
19 files changed
+390 -183

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
import React from 'react';
import ModeRoute from '@routes/Mode';
import publicUrl from '../utils/publicUrl';
/*
Routes uniquely define an entry point to:
@@ -42,7 +43,7 @@ export default function buildModeRoutes({
modes.forEach(mode => {
// todo: for each route. add route to path.
dataSourceNames.forEach(dataSourceName => {
const path = `/${mode.routeName}/${dataSourceName}`;
const path = `${publicUrl}${mode.routeName}/${dataSourceName}`;
// TODO move up.
const children = () => (
@@ -65,7 +66,7 @@ export default function buildModeRoutes({
// Add active DataSource route.
// This is the DataSource route for the active data source defined in ExtensionManager.getActiveDataSource
const path = `/${mode.routeName}`;
const path = `${publicUrl}${mode.routeName}`;
// TODO move up.
const children = () => (