Sept. 24, 2023, 7:03 p.m. | Anik Routh

DEV Community dev.to




Introduction:


Next.js 13 has a Metadata API that can be used to define your application metadata (e.g. meta and link tags inside your HTML head element) for improved SEO and web shareability.


There are two ways you can add metadata to your application:





Static metadata:


To define static metadata, export a Metadata object from a layout.js or static page.js file.



import type { Metadata } from 'next' 

export const metadata: Metadata = {
title: '...',
description: '...',
}

export default …

api application head html inside introduction javascript meta metadata next next.js next.js 13 seo web

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Associate Data Engineer

@ Nominet | Oxford/ Hybrid, GB

Data Science Senior Associate

@ JPMorgan Chase & Co. | Bengaluru, Karnataka, India