I'm trying to hoist (deploy) a React project to Vercel #86624
-
|
I'm trying to hoist (deploy) a React project to Vercel, but I'm not sure if I'm following the correct steps. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
To deploy a React app to Vercel using GitHub, first push your project to a GitHub repository, making sure it includes your usual React files but not the build folder, since Vercel will generate that automatically. |
Beta Was this translation helpful? Give feedback.
To deploy a React app to Vercel using GitHub, first push your project to a GitHub repository, making sure it includes your usual React files but not the build folder, since Vercel will generate that automatically.
Then go to Vercel, choose “New Project,” and import your GitHub repo; Vercel will recognize that it’s a React app and set the correct defaults. In most cases you don’t need to change anything—the build command (npm run build) and output directory (build/) are filled in automatically—so you can simply click “Deploy” and wait for it to finish.
Make sure your project builds locally before deploying, and add any required environment variables in Vercel’s settings. After that, every …