TrademarkTrademarkTrademarkTrademark
Products
Resources
April 23, 2025

SEO settings for Magic Portfolio

Lorant
SEO settings for Magic Portfolio
Magic Portfolio automatically generates meta- and open graph tags for your pages based on the content.js file. Magic Portfolio automatically generates schema tags for your pages based on the content.js file. Social sharing images (open-graph and twitter) are automatically generated with next/og.
src/app/{page}/page.tsx
export async function generateMetadata() {
const title = home.title;
const description = home.description;
const ogImage = `https:///api/og/generate?title=${encodeURIComponent(title)}`;
 ...
};
The above declaration generates the social image with the title of the page. You can use a static image by replacing the ogImage value with a path to an image in the public directory.
On this page

Build the future.

Start now