cjmling / findings

Notes on stuff i finds worth keeping for quick reference later on.
2 stars 0 forks source link

expo web deploy vercel #341

Open cjmling opened 1 year ago

cjmling commented 1 year ago

In my case I have the expo project on github so

  1. create vercel.json with the config from https://docs.expo.dev/distribution/publishing-websites/
{
  "buildCommand": "expo export:web",
  "outputDirectory": "web-build",
  "devCommand": "expo",
  "cleanUrls": true,
  "framework": null,
  "rewrites": [
    {
      "source": "/:path*",
      "destination": "/"
    }
  ]
}
  1. In vercel dashboard create new project from github . Make sure while importing vercel have some basic build and out directory input field. It should match what's in this vercel.json
  2. Then wait. Project should be deployed successfully. Get the url from project dashboard in vercel and view.