@40rty/ams-cli 0.3.0 → 0.3.1

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.
@@ -187,11 +187,13 @@ export async function doctor() {
187
187
  if (hostedAt !== undefined) {
188
188
  console.log(`- 40rty hosts this app (${hostedAt}), served at ${consoleUrl}/${config.spaceSlug} — \`forty hosting self\` hands it back`);
189
189
  if (typeof config.route === 'string') await routeChecks(check, config, `${consoleUrl}/${config.spaceSlug}${config.route}`);
190
- // The app answers under /<space>/; a URL it spells out itself does not.
190
+ // The app answers under /<space>/. A URL it spells out from the root
191
+ // (`href="/pages/…"`, `/images/…`) is followed back under /<space>/ by the
192
+ // console (a same-site Referer redirect), so it works — one extra hop.
191
193
  const absolute = await findRootAbsoluteUrls(cwd);
192
194
  if (absolute.length > 0) {
193
- console.log(`! ${absolute.length} root-absolute URL(s) in the app's markup point outside /${config.spaceSlug}/ when 40rty hosts it — use <Link to> / a relative path:`);
194
- for (const where of absolute.slice(0, 20)) console.log(` ${where}`);
195
+ console.log(`- ${absolute.length} root-absolute URL(s) in the app's markup reach /${config.spaceSlug}/ through one redirect when 40rty hosts it — fine; <Link to> or a relative path skips the hop${flag('verbose') ? ':' : ' (--verbose lists them)'}`);
196
+ if (flag('verbose')) for (const where of absolute.slice(0, 20)) console.log(` ${where}`);
195
197
  }
196
198
  }
197
199
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "peerDependencies": {
16
16
  "zod": "^3.25.0"
17
17
  },
18
- "version": "0.3.0",
18
+ "version": "0.3.1",
19
19
  "homepage": "https://docs.40rty.ai",
20
20
  "license": "UNLICENSED",
21
21
  "engines": {