First, run the development server:
npm run dev # or yarn dev # or pnpm dev # or bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
Simply create a new markdown file inside the ./src/articles
folder. The app will automatically scan for the file and display it to the users. Make sure you set a proper title for said new file with the frontmatter format:
--- title: New aritcle tags: author: ---
This also works brilliantly with the good ol' getStaticProps
and getStaticPaths
, or any SSG framework for that matter.