depository-deploy 1.5.25 → 1.5.27

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.
@@ -242,8 +242,8 @@ cp -r "$UI_SRC/"* "$INSTALL_DIR/ui/"
242
242
  # Inject API base URL so the React app routes through the nginx proxy (same origin → no CORS)
243
243
  UI_INDEX="$INSTALL_DIR/ui/index.html"
244
244
  if [ -f "$UI_INDEX" ]; then
245
- sed -i.bak "s|</head>|<script>window.__API_BASE__='${SITE_URL}';window.__CORE_API_BASE__='${SITE_URL}';</script></head>|" "$UI_INDEX" && rm -f "${UI_INDEX}.bak"
246
- info "UI configured: API base → $SITE_URL"
245
+ sed -i.bak "s|</head>|<script>window.__API_BASE__='${SITE_URL}';window.__CORE_API_BASE__='${SITE_URL}';window.__AUTH_API_BASE__='${SITE_URL}/auth';</script></head>|" "$UI_INDEX" && rm -f "${UI_INDEX}.bak"
246
+ info "UI configured: API base → $SITE_URL, Auth base → $SITE_URL/auth"
247
247
  fi
248
248
 
249
249
  chmod +x "$INSTALL_DIR/api/DEPOSITORY.API.REST"
@@ -232,10 +232,10 @@ Copy-Item "$uiSrc\*" (Join-Path $INSTALL_DIR "ui") -Recurse -Force
232
232
  $uiIndex = Join-Path $INSTALL_DIR "ui\index.html"
233
233
  if (Test-Path $uiIndex) {
234
234
  $html = Get-Content $uiIndex -Raw -Encoding UTF8
235
- $inject = "<script>window.__API_BASE__='$SITE_URL';window.__CORE_API_BASE__='$SITE_URL';</script>"
235
+ $inject = "<script>window.__API_BASE__='$SITE_URL';window.__CORE_API_BASE__='$SITE_URL';window.__AUTH_API_BASE__='$SITE_URL/auth';</script>"
236
236
  $html = $html -replace '</head>', "$inject</head>"
237
237
  Set-Content $uiIndex -Value $html -Encoding UTF8
238
- Write-OK "UI configured: API base → $SITE_URL"
238
+ Write-OK "UI configured: API base → $SITE_URL, Auth base → $SITE_URL/auth"
239
239
  }
240
240
 
241
241
  $pdfIndexerSrc = Join-Path $ReleaseDir "pdfindexer"
@@ -29,7 +29,7 @@
29
29
  <rule name="Depository Auth" stopProcessing="true">
30
30
  <match url="^auth/(.*)" />
31
31
  <action type="Rewrite"
32
- url="http://{{IIS_BACKEND_HOST}}:{{AUTH_PORT}}/auth/{R:1}"
32
+ url="http://{{IIS_BACKEND_HOST}}:{{AUTH_PORT}}/{R:1}"
33
33
  appendQueryString="true" />
34
34
  </rule>
35
35
 
@@ -174,7 +174,7 @@ if [ -d "$UI_SRC" ] && [ -d "$UI_DST" ]; then
174
174
  if [ -n "$SITE_URL" ]; then
175
175
  # Remove old injection then re-inject
176
176
  sed -i.bak "s|<script>window\.__API_BASE__[^<]*</script>||g" "$UI_INDEX" 2>/dev/null || true
177
- sed -i.bak "s|</head>|<script>window.__API_BASE__='${SITE_URL}';window.__CORE_API_BASE__='${SITE_URL}';</script></head>|" "$UI_INDEX"
177
+ sed -i.bak "s|</head>|<script>window.__API_BASE__='${SITE_URL}';window.__CORE_API_BASE__='${SITE_URL}';window.__AUTH_API_BASE__='${SITE_URL}/auth';</script></head>|" "$UI_INDEX"
178
178
  rm -f "${UI_INDEX}.bak"
179
179
  fi
180
180
  fi
@@ -166,7 +166,7 @@ try {
166
166
  # Find the existing __API_BASE__ injection and preserve it
167
167
  if ($html -match "window.__API_BASE__='([^']*)'") {
168
168
  $siteUrl = $Matches[1]
169
- $inject = "<script>window.__API_BASE__='$siteUrl';window.__CORE_API_BASE__='$siteUrl';</script>"
169
+ $inject = "<script>window.__API_BASE__='$siteUrl';window.__CORE_API_BASE__='$siteUrl';window.__AUTH_API_BASE__='$siteUrl/auth';</script>"
170
170
  $html = $html -replace '<script>window\.__API_BASE__.*?</script>', ""
171
171
  $html = $html -replace '</head>', "$inject</head>"
172
172
  Set-Content $uiIndex -Value $html -Encoding UTF8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "depository-deploy",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
4
4
  "description": "Depository document management system – deployment wizard and installers",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -25,9 +25,9 @@
25
25
  "scripts/publish.mjs"
26
26
  ],
27
27
  "optionalDependencies": {
28
- "depository-deploy-linux": "1.5.25",
29
- "depository-deploy-macos": "1.5.25",
30
- "depository-deploy-windows": "1.5.25"
28
+ "depository-deploy-linux": "1.5.27",
29
+ "depository-deploy-macos": "1.5.27",
30
+ "depository-deploy-windows": "1.5.27"
31
31
  },
32
32
  "scripts": {
33
33
  "start": "node wizard-server.mjs"