Add Ghost CMS blog section (list + article pages)

This commit is contained in:
2026-07-23 20:59:29 +05:30
parent 9a42e8b6e5
commit 5e457f4f39
9 changed files with 767 additions and 0 deletions
+11
View File
@@ -1,8 +1,19 @@
/** @type {import('next').NextConfig} */
// Allow next/image to load Ghost feature images from the configured CMS host.
const ghostHost = (() => {
try {
return process.env.GHOST_URL ? new URL(process.env.GHOST_URL).hostname : null;
} catch {
return null;
}
})();
const nextConfig = {
images: {
remotePatterns: [
{ protocol: "https", hostname: "images.unsplash.com" },
...(ghostHost ? [{ protocol: "https", hostname: ghostHost }] : []),
],
},
};