Looks like running next in dev mode executes the code even if it has issues? Run `npm run build` to see the issues I'm referring too.