-
Notifications
You must be signed in to change notification settings - Fork 48.8k
Enable fixtures/view-transition
deploy to Vercel
#32994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Need empty build command. Otherwise Vercel uses static-build instead of static for build/static
@@ -13,7 +13,7 @@ module.exports = { | |||
arrowParens: 'avoid', | |||
overrides: [ | |||
{ | |||
files: ['*.code-workspace'], | |||
files: ['*.code-workspace', '*.json'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by to allow force-formatting of .json
files. They used to be handled by Hermes parser which can't parse .json files.
|
||
## Deploy | ||
|
||
Deployed to https://react-fixture-view-transition-six.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the -six
suffix. Maybe I accidentally sit on react-fixture-view-transition.vercel.app
. I'll double check.
"dependencies": { | ||
"@babel/core": "7.26.0", | ||
"@babel/plugin-proposal-private-property-in-object": "7.21.11", | ||
"@babel/register": "^7.25.9", | ||
"babel-preset-react-app": "10.0.1", | ||
"express": "^4.14.0", | ||
"http-proxy-middleware": "3.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are used when running the server so I classified them as prod dependencies. This enables a simple yarn install --production
to avoid file limits when deploying. The alternative is bundling the server via ncc
but that was its own fight I lost.
77a9784
to
b8fd442
Compare
Pending git integration with facebook/react
Summary
Automatically deploys
fixtures/view-transition
to Vercel (except changes only targettingcompiler/
.There's repeated work from
yarn build-for-vt-deploy
that could be skipped if we wait for CI. But that requires setting up a webhook which makes testing harder. Let's see if we have issues with starved build containers first.I tried to make it work with zero-config but combining create-react-app with express.js was too much of a hassle. So we directly output Build Output API compatible files. This is what we'd do if we switch to Vite in
vite-plugin-ssr
anyway.How did you test this change?
Same settings on a fork and
git push
. We'll see how it behaves on PRs from forks.