mirror of
https://github.com/LukasDzenk/next-markdown-blog.git
synced 2026-05-28 13:57:35 +00:00
No description
- JavaScript 98.8%
- CSS 1.2%
| components | ||
| docs | ||
| pages | ||
| posts | ||
| public | ||
| styles | ||
| .eslintrc.json | ||
| .gitignore | ||
| next.config.js | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| yarn.lock | ||
This is a Markdown powered Next.js blog! View Live version
Getting Started
Installation
yarn
Development
yarn dev
Homepage http://localhost:3000/next-markdown-blog
Local static file serving
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.
Resources
This blog was initially made by following this article (repo: https://github.com/rebelchris/next-markdown-blog).