question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve previews and auto-deploys on Vercel with more control on the build step

See original GitHub issue

Problem

At the moment it’s really convenient to be able to open a PR and have the bot post a link to the preview. As well as having JupyterLite automatically be published to https://jupyterlite.vercel.app when the PR is merge into the main branch.

With https://github.com/jtpio/jupyterlite/pull/57 we however start having a more complex build system that also involves Python dependency management. And adding Python makes the Vercel configuration more complicated (also difficult to get it to work).

Proposed Solution

It would be interesting to start using this action: https://github.com/amondnet/vercel-action.

Looks like we would get everything needed:

  • comment on new PRs with a link to the preview
  • full control on the build and its dependencies via GitHub Actions workflows
  • the app is still pushed to Vercel just like it is no

The other option mentioned in #57 was to deploy to GitHub Pages instead, using something like https://github.com/marketplace/actions/deploy-to-github-pages (not sure it would be easy to have a preview with this approach)

Additional context

Questions mostly coming from the iterations in https://github.com/jtpio/jupyterlite/pull/57.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bollwyvlcommented, Apr 23, 2021

Anyhow: if you had some notes on the federated junk, I’m more than happy to start digging into docs/pipes/builds, since I wasn’t making a lot of headway.

Funny story: I demoed running robot framework inside polite today… Pretty insane.

0reactions
jtpiocommented, May 22, 2021

Maybe we can actually remove the Vercel deploy workflow from this repo.

The RTD setup has been working well so far, so we could just document the Vercel case in the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Deployments – Vercel Docs
To manage a deployment, go to your project from the Vercel dashboard. Then click the Deployments tab from the top navigation. View all...
Read more >
Deployment Protection: Added security controls now available ...
Deployment protection offers flexible ways to make Preview Deployments private and accessible with Vercel Authentication or Shareable Links.
Read more >
Creating Deployments – Vercel Docs
To use this deployment method, you have to generate a URL that accepts HTTP GET or POST requests to trigger deployments and re-run...
Read more >
Configure a Build – Vercel Docs
Vercel automatically configures the build settings for many front-end frameworks, but you can also customize the build according to your requirements.
Read more >
How can I use GitHub Actions with Vercel?
The Action uploads the build output to Vercel and creates a Preview Deployment. When the pull request is merged, a Production build is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found