This is a quick example of setting up 2 next.js instances, so you can use server side routes with Capacitor.
- Run
npm install
- Run
npm run server-dev
in one terminal tab - Run
npm run client-dev
in another tab - Go to
http://localhost:3000/
and you should see the fruits from the next.js server
- Stop the
client-dev
script - Run
npm run export
- Open the
index.html
in a browser and you should still see the fruits
- Add documentation about deploying the server to Vercel
- Add client side environment variables to access Vercel deployed server