---
# System prepended metadata

title: NextJS upgrade y Code review for refactor

---

# NextJS upgrade y Code review for refactor

 * Current version of NextJS
     * Renderer -> 9.5.6-canary.9
     * B2C-UI -> 8.0.1

 * Proposal version 
     * 11.1.2 -> stable version
         * keep webpack 4

     * React 17 (as required in the nextjs upgrade guide https://nextjs.org/docs/upgrading)

 * Webpack 5
     * how load de styles libraries ?
    
 * npmx create-next-app latest version 
     * create custom server
     * use fastify framework 
     * add dotenv package for env vars
     * create routes for diferent pages
         * static routes ? could be dynamic ?
     * @next/bundle-analyzer
         * Visualize size of webpack output files with an interactive, zoomable treemap.

# Renderer

