Switching between adapters
We sometimes have to migrate from one template to another one. To do so, we must switch our Remix app’s setup. In this chapter, we will walk through the process of switching templates and adapters.
The process of switching between templates and adapters can be summarized as follows:
- Locate your Remix project and open it in an editor or file explorer.
- Create a new Remix project using the new template and adapter.
- Open the new Remix project side by side with your old project.
- Rename the
app
folder in the new project totemp
. Move theapp
folder from your old project to the new project. - Replace the code in
app/entry.client.tsx
with the code intemp/entry.client.tsx
and integrate any custom code previously added to the file. - Replace the code in
app/entry.server.tsx
with the code intemp/entry.server.tsx
and integrate any custom code previously added to the file. - For every Remix-specific file and folder in the root of...