If you don't already have a Github account, head to github.com and register.
If you haven't already, sign in to CodeSandbox using your Github account.
package.json
package.json
with the followingBe sure to save your changes!
package.json{ "scripts": { "build": "cp -R . ../public && mv ../public public" } }
This build script tells Vercel how to deploy your code.
If you haven't made any changes to the code, there will be a "Fork Sandbox" button that you need to click before moving on.
Follow the sign-in process using your Github account. When prompted, click the "Authorize" button to connect CodeSandbox to Vercel.
Congratulations! Your project has been deployed.
Click anywhere outside the popup box to close it. Then, click "Visit Site" to view your deployment.
The randomly-generated domain name probably isn't what you want. To change it, head to the Vercel dashboard at vercel.com/dashboard.
Then, click on the name of your project.
Click on the "Settings" tab.
Open the "Domains" page and click "Edit" on your curent domain.
Change your domain name to something better, then click "Save".
Finally, click on your new domain name to check it out!
It's also possible to choose a domain that does not end in.vercel.app.
Vercel provides the following endings for free:
If you want something else, like a .com or .dev domain, you'll need to pay money — usually about $12/year. I recommend using Google Domains because they're cheap and honest. (Other domain providers might try to increase prices without telling you. Be careful!)
For more information, check out the Vercel documentation.