Skip to content
  • Roberto MF's avatar
    65dae1f3
    Migrate from CRA to Next.js (SSG) · 65dae1f3
    Roberto MF authored
    1. Bootstrap Next.js with `create-next-app` in a temporary subfolder
    2. Install Prettier and add a `.prettierrc`
    3. Migrate `public/`, `components/`, `constants/`, `helpers/` and `styles/` folders
    4. Migrate `public/index.html` template to `pages/index.js`
    5. Remove `<noscript>` fallbacks
    6. Migrate fetching logic from stateful components to `getStaticProps()`
    7. Remove CORS proxies
    8. Update `package.json` scripts for building with `next export` (SSG)
    9. Update `.gitlab.ci.yml`
    10. Replace root contents (CRA) with those of the subfolder (Next.js)
    65dae1f3
    Migrate from CRA to Next.js (SSG)
    Roberto MF authored
    1. Bootstrap Next.js with `create-next-app` in a temporary subfolder
    2. Install Prettier and add a `.prettierrc`
    3. Migrate `public/`, `components/`, `constants/`, `helpers/` and `styles/` folders
    4. Migrate `public/index.html` template to `pages/index.js`
    5. Remove `<noscript>` fallbacks
    6. Migrate fetching logic from stateful components to `getStaticProps()`
    7. Remove CORS proxies
    8. Update `package.json` scripts for building with `next export` (SSG)
    9. Update `.gitlab.ci.yml`
    10. Replace root contents (CRA) with those of the subfolder (Next.js)
Loading