Does running "npm run build" verify routes load? #13115
-
I've noticed that I have a runtime JavaScript error on any route in my app, the "npm run build" fails with an error. What intelligent statement can I make if "npm run build" runs without an error? |
Beta Was this translation helpful? Give feedback.
Answered by
timneutkens
May 20, 2020
Replies: 1 comment 2 replies
-
You might run into this if the pages use static generation as that executes the code during |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pkellner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might run into this if the pages use static generation as that executes the code during
next build
. In order to verify if a page is static we require the page and read it's exports.