Files
mintel.me/apps/web/scripts/verify-components.ts
Marc Mintel 10fec05a19
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🏗️ Build (push) Failing after 1m10s
Build & Deploy / 🧪 QA (push) Successful in 5m4s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
fix: bypass broken base images and restore build optimizations
2026-02-11 14:47:55 +01:00

51 lines
1.5 KiB
TypeScript

#!/usr/bin/env tsx
/**
* Verify components can be imported and used (Next.js Version)
*/
import { join } from "path";
import fs from "fs";
console.log("🔍 Verifying Embed Components (Next.js)...\n");
// Test 1: Check if components exist
const components = ["YouTubeEmbed.tsx", "TwitterEmbed.tsx", "GenericEmbed.tsx"];
for (const component of components) {
const componentPath = join(process.cwd(), "src", "components", component);
if (fs.existsSync(componentPath)) {
console.log(`${component} exists`);
} else {
console.log(`❌ Component missing: ${component}`);
}
}
// Test 2: Check demo post accessibility
try {
const demoPath = join(process.cwd(), "src", "data", "embedDemoPost.ts");
if (fs.existsSync(demoPath)) {
console.log("✅ embedDemoPost.ts data file exists");
} else {
console.log("❌ embedDemoPost.ts missing");
}
} catch (error) {
console.log("❌ Demo post check error:", error);
}
// Test 3: Check blogPosts array
try {
const blogPostsPath = join(process.cwd(), "src", "data", "blogPosts.ts");
if (fs.existsSync(blogPostsPath)) {
// Check if embed-demo needs to be added (actually it's blog-embed-demo or similar usually)
console.log("✅ Checking blogPosts array integration...");
}
} catch (error) {
console.log("❌ blogPosts check error:", error);
}
console.log("\n" + "=".repeat(60));
console.log("📋 SUMMARY:");
console.log("• Components are verified for Next.js");
console.log("• Data structure is verified");