fix: refactor standorte detail page layout to match standard mdx pages and fix bohrtechnik links
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 34s
Build & Deploy / 🧪 QA (push) Successful in 1m10s
Build & Deploy / 🏗️ Build (push) Successful in 2m13s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 45s
Build & Deploy / 🔔 Notify (push) Successful in 2s
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 34s
Build & Deploy / 🧪 QA (push) Successful in 1m10s
Build & Deploy / 🏗️ Build (push) Successful in 2m13s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 45s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -29,7 +29,12 @@ async function run() {
|
||||
console.log(` Waiting for potential Gatekeeper redirect...`);
|
||||
await new Promise((resolve) => setTimeout(resolve, 3000));
|
||||
|
||||
const isGatekeeper = await page.$('input[name="password"]');
|
||||
let isGatekeeper = null;
|
||||
try {
|
||||
isGatekeeper = await page.$('input[name="password"]');
|
||||
} catch (e) {
|
||||
console.log('Navigation happened while checking gatekeeper:', e.message);
|
||||
}
|
||||
if (isGatekeeper) {
|
||||
await page.type('input[name="password"]', gatekeeperPassword);
|
||||
await Promise.all([
|
||||
@@ -65,7 +70,7 @@ async function run() {
|
||||
urls.map(async (url) => {
|
||||
if (url.includes('openstreetmap.org') || url.includes('unpkg.com')) return;
|
||||
try {
|
||||
const res = await fetch(url, { method: 'HEAD' });
|
||||
const res = await fetch(url, { method: 'GET' });
|
||||
if (res.status >= 400) {
|
||||
// Diagnostic: check if the raw source is available
|
||||
const rawUrlMatch = url.match(/[?&]url=([^&]+)/);
|
||||
@@ -73,7 +78,7 @@ async function run() {
|
||||
const rawPath = decodeURIComponent(rawUrlMatch[1]);
|
||||
const baseUrl = new URL(url).origin;
|
||||
const rawUrl = `${baseUrl}${rawPath}`;
|
||||
const rawRes = await fetch(rawUrl, { method: 'HEAD' });
|
||||
const rawRes = await fetch(rawUrl, { method: 'GET' });
|
||||
broken.push(`${url} (Status: ${res.status}, Raw Status: ${rawRes.status})`);
|
||||
} else {
|
||||
broken.push(`${url} (Status: ${res.status})`);
|
||||
|
||||
Reference in New Issue
Block a user