Use Vercel to host the app
See original GitHub issueUsing the GitHub page to host the app has several drawbacks:
- Not easy to preview the pending change
- No existing CI/CD support
- No way to have a preview version for PR
I suggest using https://vercel.com/ to host the app. This is a version I deployed: https://test.xcv58.vercel.app/conwnet/github1s/blob/HEAD/src/vs/code/browser/workbench/workbench.ts
There are two drawbacks:
Price
And the drawback is Vercel is not a free service but the price is cheap https://vercel.com/pricing. I paid around $3 per month and the majority part is custom domains.
And I can help to request a free or discounted account for this project.
CI/CD setup
I don’t know whether Vercel supports the toolchain
to build VSCode. I could reach to their customer support to check whether there is any similar setup/use-case.
But in the worst case, we could use CircleCI (free service) to build the artifact and integrate it with Vercel.
Just for reference
The steps to deploy under my Vercel account:
- Run
yarn
&yarn build
cd dist
and make avercel.json
file with the content:
{
"routes": [{
"src": "/static/(.*)",
"dest": "/images/$1"
},
{
"src": "/favicon.ico",
"dest": "/favicon.ico"
},
{
"src": "/manifest.json",
"dest": "/manifest.json"
},
{
"src": ".*",
"dest": "/index.html"
}
]
}
- Install the Vercel CLI https://vercel.com/download
- Run
vercel login
command to login - Run
vercel
to deploy.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (1 by maintainers)
Top GitHub Comments
I Guess, All Done Here. Can we close this issue?
PR to fix the Vercel preview issue #164