@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.
- package/bin/commands/doctor.mjs +5 -3
- package/package.json +1 -1
package/bin/commands/doctor.mjs
CHANGED
|
@@ -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
|
|
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(
|
|
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
|
}
|