If you choose to move a Create React App project to Next.js, first make the existing React app run with the new build. Keep its router and the services it uses while you compare one familiar screen. That gives you a baseline before you change how addresses, data or sign-in work.
Do you need to migrate to Next.js?
The React team deprecated Create React App, or CRA, for new apps in February 2025. It encouraged existing projects to move to a framework or a build tool. A working app did not stop running because of that announcement. Start by asking what is getting in your way, such as a dependency you can no longer update or a feature your current setup makes difficult. React’s CRA announcement
| What you need | What to consider |
|---|---|
| Time to plan a change while the app still works | Check which dependencies and build steps you can maintain today. Keep a copy of the working release and identify what would trigger a move. |
| A replacement build for the same browser app | Consider a build tool such as Vite or Parcel. You can keep React and your existing approach to routing and data. |
| Framework-managed pages or server work for a specific feature | Consider a framework such as Next.js. Write down what you want the framework to handle and what the host will need to run. |
The React project guide explains when a framework adds something useful, such as routing or server rendering. Keep that decision separate from replacing CRA’s build tool.
What is the smallest useful first move?
Keep the working version and start in a separate branch or disposable copy. Save the dependency lockfile and note how the old app is built and served. The official Next.js migration guide starts by running the existing React app in Next.js as a browser-side app. It keeps the existing router at this stage. Use the guide for your installed version to set up the Next.js layout and entry point around that app.
Choose one public, read-only screen to compare first. For example, use a studio-hours page at /hours with sample opening times of 10 a.m. on Monday and 2 p.m. on Friday. A filter switches between the days. In both copies, keep the same component, address, sample data and filter behavior. Keep the existing sign-in and data rules in the app. The practice screen itself needs no account, service call or write.
Before moving more of the app, make a list of what to preserve when changing frameworks, including addresses, files, records and sign-in settings. Build a separate recovery plan for anything you later decide to move.
Can you keep the same addresses?
Let your current router handle addresses in the first pass. If it uses ordinary browser paths, opening a nested address directly depends on how the host serves the app. When you export static files, check whether the host needs a fallback that serves the existing app entry point for those routes. A link that works after opening the home page can still fail on a direct visit or reload.
Once the baseline works, you can move a route into Next.js App Router if doing so helps the feature you chose. Start with one route and keep its public address where possible. Pages Router is still supported. The current CRA migration guide uses App Router for the entry point around the existing app. Pages Router support · Static deployment
What should stay with the current app?
Keep the existing browser requests, backend and sign-in behavior for the first pass. If an existing screen needs a backend, use its test version and the same data shape and access rules in the preview. Keep production credentials and records outside that copy.
A static export serves files prepared at build time. It can still call a separate backend from the browser. Features that need a Next.js server when a request arrives, such as Server Actions or request-time route handlers, need a different hosting setup. If you later move a write or private read into Next.js, treat it as a separate change and verify the account’s permission where the request is handled. Static export limits
What should the preview prove?
Before you start either copy locally or on a preview host, confirm it uses sample records and test sign-in if needed, and that its services are test-only or turned off. The app can contact a service as it starts, even when the screen you plan to check needs none. If you cannot verify those connections, trace the steps on paper or use a standalone static sample of the screen with no app shell or service connections.
| Check in both copies | What to look for |
|---|---|
| Open the studio-hours page from its normal link | The same public address pattern and sample hours appear. |
| Select Friday | Both copies show Friday at 2 p.m. and show that Friday is selected. |
| Open the address directly, then reload | The page, styles and assets load. The filter behaves as it did before the move. |
| If you later compare a signed-in screen | Use separate test accounts. Verify sign-in and sign-out, and check that each account sees only the records it is meant to see. |
Run the comparison with the built output on the intended type of host, since the development server may serve routes differently. Keep the old release and its routing settings available while you verify the new one.
Which build settings should you check?
List the public settings the browser actually needs. Review each old REACT_APP_ value before giving it a NEXT_PUBLIC_ name. Next.js can put those public values into the JavaScript it sends to visitors at build time. Keep secrets out of browser settings. When a public value differs between preview and production, check that the build used the intended value. Next.js environment variables
Check the existing API address and any development forwarding rule. A CRA development proxy does not carry over by changing frameworks. A Next.js server can use a rewrite where appropriate, while static exports need the separate backend or a forwarding rule on the host. Also check asset paths and imported images. Keep ordinary image tags in the first pass if they work. The default Next.js image optimizer is unavailable with a static export. A compatible custom loader can provide optimization if you later use the Next.js Image component. API forwarding in the migration guide · Image optimization in a static export
How can you tell if the move helped?
Start with the problem you wrote down. If it was a build dependency, check that you can install and build the version you intended to use. If it was slow first load, compare the same screen in both built versions using the same sample data, device and network settings. Check the behavior first, then measure what changed. A framework switch alone does not tell you how much code the browser will download or how quickly a page will load.
When should you move further or roll back?
Move another route or adopt a server feature only after the first screen matches and you know what the next change should improve. Before changing live traffic, know how to restore the previous frontend and its routing settings. If the new release breaks the agreed behavior, restore the last working release and verify the original address and screen again. Restoring frontend code does not undo writes or changes to permissions. Keep a separate recovery plan for any later data or sign-in migration.