Eagle Chu

Eagle Chu

How to deploy next js app to github page

Steps:

Issues:

  • Build error: next export has been removed in favor of "output": "export"
    1. There's no next.config.js in the blog App I created, so I first added next.config.js.
    2. Resolved the build error by Github discussion.

Remain issues:

  • The profile avatar is using the absolute url. Reletive path is not working.