Skip to content

Conversation

@connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Aug 7, 2021

Noticed a minor extra complexity with how the vercel deployment works. instead of uploading dist/now and moving all the gh-pages into that folder, I suggest we just upload dist.

image

->

image

it's still just a subset of our dist folder (although now it added report/) because vercel only runs yarn now-build

@connorjclark connorjclark requested a review from a team as a code owner August 7, 2021 00:52
@connorjclark connorjclark requested review from adamraine and removed request for a team August 7, 2021 00:52
@google-cla google-cla bot added the cla: yes label Aug 7, 2021
@connorjclark connorjclark requested a review from paulirish August 7, 2021 00:52
@paulirish
Copy link
Member

Noticed a minor extra complexity with how the vercel deployment works. instead of uploading dist/now and moving all the gh-pages into that folder, I suggest we just upload dist.

that sounds good to me. this PR basically removes the "now" term from our file structure, which is a great addition to #12901. (i was thinking we do s/now/vercel/ but i like this proposal even more)


can you adjust the two lines in dogfood-lhci.sh that also work with /now/ ?

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % dogfood-lhci thing.

this'll conflict with #12901 too. :/

@brendankenny
Copy link
Contributor

brendankenny commented Aug 12, 2021

Noticed a minor extra complexity with how the vercel deployment works. instead of uploading dist/now and moving all the gh-pages into that folder, I suggest we just upload dist.

that sounds good to me. this PR basically removes the "now" term from our file structure, which is a great addition to #12901. (i was thinking we do s/now/vercel/ but i like this proposal even more)

FWIW https://vercel.com/guides/upgrade-to-zero-configuration#frameworks-with-zero-configuration makes it seem like we could drop the now.json too if we're willing to && mv dist public (edit: in yarn vercel-build, I mean, not everywhere :)

It does seem like a yarn build-all could sneak into this npm script chain at some point and we'll be uploading MiBs of javascript from dist/ with no one noticing, but presumably that would still be well within any deployment limits? :)

@brendankenny
Copy link
Contributor

can you adjust the two lines in dogfood-lhci.sh that also work with /now/ ?

should something have failed here since ./dist/now/english/ didn't exist?

@paulirish
Copy link
Member

can you adjust the two lines in dogfood-lhci.sh that also work with /now/ ?

should something have failed here since ./dist/now/english/ didn't exist?

heh probably but this happened:

image

(and probably happens on all runs all the time. ruh roh)

FWIW vercel.com/guides/upgrade-to-zero-configuration#frameworks-with-zero-configuration makes it seem like we could drop the now.json too if we're willing to && mv dist public (edit: in yarn vercel-build, I mean, not everywhere :)

i tried this on another project recently.. unfortch the config file is still necessary if you don't want vercel to comment after every deployment. (the "github": {"silent": true}, bit)

@connorjclark connorjclark merged commit 084d436 into master Aug 13, 2021
@connorjclark connorjclark deleted the now-build-tweak branch August 13, 2021 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants