Skip to content

Any tips or advice for migrating a project from React Static to Next.js? #1670

Discussion options

You must be logged in to vote

Hi @chrisESparkles ,

The Next.js Getting Started Docs are pretty decent. A few things to check:

  • Routing works the same as in it uses directory structure, but understand it only works for the pages folder, and not an arbitrary one (by default).
  • Dynamic routes must also exist as files, whereas in React-Static they don't.
  • Everything is pre-rendered instead of excluding pre-rendering on certain routes. This is because every request is always rendered by a server, either at request time or at build time, whereas in React-Static you could only pre-render at build time.
  • You must (in most cases) use the Next.js image component instead of whatever you're using right now.
  • Static files are auto exp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chrisESparkles
Comment options

Answer selected by chrisESparkles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants