
3/26/2018
What this post added
Introduced a 102x speedup in page resolution by simplifying the logic based on URL path. Implemented `publicRuntimeConfig` and `serverRuntimeConfig` for environment configuration, making variables accessible on both server and client or server-only. Refactored error handling to automatically reload pages on 404 HTTP status for page bundles, improving compatibility with CDNs. Introduced phases in `next.config.js` to allow conditional configuration based on the Next.js phase (development, build, etc.). Improved production source map generation by replacing `app.js` with `main.js` to enable source maps for all files. Added new official plugins like `@zeit/next-bundle-analyzer` and improved existing CSS, Less, and Sass plugins for better hot reloading and bundling.