This is an Expo project created with create-expo-app.
According to the recommendations from
Expo Router API Routes Documentation, the following changes need to be made:
-
In
package.json, add the following line:"vercel-build": "expo export -p web"
-
Create a file named
api/index.ts. -
Don't forget to add the environment variables
DATABASE_URLandSTRIPE_SECRET_KEYto Vercel
After making these changes, you can proceed to deploy to Vercel.
Here are some example APIs you can try to access: