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
appfolder in the new project totemp. Move theappfolder from your old project to the new project. - Replace the code in
app/entry.client.tsxwith the code intemp/entry.client.tsxand integrate any custom code previously added to the file. - Replace the code in
app/entry.server.tsxwith the code intemp/entry.server.tsxand integrate any custom code previously added to the file. - For every Remix-specific file and folder in the root of...