@stacksolo/cli 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5947,6 +5947,8 @@ function resolveCdktfConfig(config, projectInfo) {
|
|
|
5947
5947
|
name: uiName,
|
|
5948
5948
|
config: {
|
|
5949
5949
|
name: uiName,
|
|
5950
|
+
originalName: ui.name,
|
|
5951
|
+
// Short name for route matching
|
|
5950
5952
|
location: "US",
|
|
5951
5953
|
// Multi-region for CDN
|
|
5952
5954
|
sourceDir: ui.sourceDir || `apps/${ui.name}`,
|
|
@@ -10916,7 +10918,8 @@ terraform {
|
|
|
10916
10918
|
log("Building and uploading UI assets...");
|
|
10917
10919
|
for (const uiResource of uiResources) {
|
|
10918
10920
|
const uiName = uiResource.config.name;
|
|
10919
|
-
const
|
|
10921
|
+
const uiOriginalName = uiResource.config.originalName || uiName;
|
|
10922
|
+
const sourceDir = path10.resolve(process.cwd(), uiResource.config.sourceDir || `apps/${uiOriginalName}`);
|
|
10920
10923
|
const framework = uiResource.config.framework;
|
|
10921
10924
|
const buildCommand2 = uiResource.config.buildCommand || "npm run build";
|
|
10922
10925
|
const buildOutputDir = uiResource.config.buildOutputDir;
|
|
@@ -10976,7 +10979,7 @@ terraform {
|
|
|
10976
10979
|
const lb = network.loadBalancer;
|
|
10977
10980
|
if (lb?.routes) {
|
|
10978
10981
|
for (const route of lb.routes) {
|
|
10979
|
-
if (route.backend ===
|
|
10982
|
+
if (route.backend === uiOriginalName && route.path) {
|
|
10980
10983
|
const pathMatch = route.path.match(/^\/([^/*]+)/);
|
|
10981
10984
|
if (pathMatch) {
|
|
10982
10985
|
uploadPath = pathMatch[1];
|