This is a Markdown powered Next.js blog! View Live version
yarn
yarn dev
Homepage http://localhost:3000/next-markdown-blog
serve -s ./out -p 8000
NOTE: In order to preview the exported static files locally, the following has to be edited:
- Comment out from next.config.js (otherwise "Uncaught SyntaxError: Unexpected token '<' (at ...)" will be thrown":
-
- // assetPrefix: '/next-markdown-blog',
-
- // basePath: '/next-markdown-blog',
- Remove '/next-markdown-blog' from Image src
To deploy to GitHub, undo the changes above.
This blog was initially made by following this article (repo: https://github.com/rebelchris/next-markdown-blog).