Skip to content

Commit 5497a08

Browse files
authored
Fix Vercel Build (#2141)
* pin exact node version * better version specification * chore: try one more * explicitly add rspack bindings for vercel * pin another dep for vercel * two more deps for vercel
1 parent 06fde8c commit 5497a08

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"engines": {
6-
"node": ">=18.17.1"
6+
"node": ">18.17.0 < 19.0.0"
77
},
88
"scripts": {
99
"docusaurus": "docusaurus",
@@ -29,14 +29,18 @@
2929
"@docusaurus/theme-common": "^3.6.0",
3030
"@docusaurus/theme-mermaid": "^3.6.0",
3131
"@mdx-js/react": "^3.0.1",
32+
"@rspack/binding-linux-x64-gnu": "^1.0.14",
3233
"@svgr/webpack": "^5.5.0",
34+
"@swc/core-linux-x64-gnu": "^1.8.0",
35+
"@swc/html-linux-x64-gnu": "^1.8.0",
3336
"@types/jest": "^27.4.0",
3437
"algoliasearch": "^5.12.0",
3538
"buffer": "^6.0.3",
3639
"clsx": "^1.1.1",
3740
"config": "^3.3.6",
3841
"env-cmd": "^10.1.0",
3942
"file-loader": "^6.2.0",
43+
"lightningcss-linux-x64-gnu": "^1.28.1",
4044
"path": "^0.12.7",
4145
"plugin-image-zoom": "ataft/plugin-image-zoom",
4246
"posthog-docusaurus": "^1.0.3",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@
27182718
resolved "https://registry.yarnpkg.com/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.14.tgz#8c2624c1426ecc51c9bd4c74c8dcc8d7b0bdbc35"
27192719
integrity sha512-qgybhxI/nnoa8CUz7zKTC0Oh37NZt9uRxsSV7+ZYrfxqbrVCoNVuutPpY724uUHy1M6W34kVEm1uT1N4Ka5cZg==
27202720

2721-
2721+
"@rspack/[email protected]", "@rspack/binding-linux-x64-gnu@^1.0.14":
27222722
version "1.0.14"
27232723
resolved "https://registry.yarnpkg.com/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.14.tgz#6636bf658304d246d617f01ae12f4cbe29097a62"
27242724
integrity sha512-5vzaDRw3/sGKo3ax/1cU3/cxqNjajwlt2LU288vXNe1/n8oe/pcDfYcTugpOe/A1DqzadanudJszLpFcKsaFtQ==
@@ -3091,7 +3091,7 @@
30913091
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.8.0.tgz#651647747f820f4667ad926c965b396bb82122fa"
30923092
integrity sha512-2CdPTEKxx2hJIj/B0fn8L8k2coo/FDS95smzXyi2bov5FcrP6Ohboq8roFBYgj38fkHusXjY8qt+cCH7yXWAdg==
30933093

3094-
3094+
"@swc/[email protected]", "@swc/core-linux-x64-gnu@^1.8.0":
30953095
version "1.8.0"
30963096
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.8.0.tgz#745a3113bc48ee867631a77bb239ec598a2fc8f2"
30973097
integrity sha512-14StQBifCs/AMsySdU95OmwNJr9LOVqo6rcTFt2b7XaWpe/AyeuMJFxcndLgUewksJHpfepzCTwNdbcYmuNo6A==
@@ -3165,7 +3165,7 @@
31653165
resolved "https://registry.yarnpkg.com/@swc/html-linux-arm64-musl/-/html-linux-arm64-musl-1.8.0.tgz#1c262c38d129655fd90234ca15447837ab58253f"
31663166
integrity sha512-MVdXyF4QZtVM2RpoSbpKTyn4NHYQmmoj+hbIgqEnce+UH/+lly/xyqtObOcZ05a/UKOx93lL9e8zY48tSRNAsg==
31673167

3168-
3168+
"@swc/[email protected]", "@swc/html-linux-x64-gnu@^1.8.0":
31693169
version "1.8.0"
31703170
resolved "https://registry.yarnpkg.com/@swc/html-linux-x64-gnu/-/html-linux-x64-gnu-1.8.0.tgz#c9a95048b1b58f141fa124d1d3c65954556304ed"
31713171
integrity sha512-+RhgpJSqLDBySQClmPb1esdHvylyNPmUDZSCbxW2UB2X1PyJk+a6u9c6T4bacpGj+kSYxWJTpm8NUMP5O8TJlQ==
@@ -8992,7 +8992,7 @@ [email protected]:
89928992
resolved "https://registry.yarnpkg.com/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.28.1.tgz#9d2561d8a5ecfb3f1f18651da0acc592e837ea3a"
89938993
integrity sha512-dnMHeXEmCUzHHZjaDpQBYuBKcN9nPC3nPFKl70bcj5Bkn5EmkcgEqm5p035LKOgvAwk1XwLpQCML6pXmCwz0NQ==
89948994

8995-
8995+
[email protected], lightningcss-linux-x64-gnu@^1.28.1:
89968996
version "1.28.1"
89978997
resolved "https://registry.yarnpkg.com/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.28.1.tgz#91d0a41d6dd40d8965cb6c1fbd4d40e6b3460384"
89988998
integrity sha512-7vWDISaMUn+oo2TwRdf2hl/BLdPxvywv9JKEqNZB/0K7bXwV4XE9wN/C2sAp1gGuh6QBA8lpjF4JIPt3HNlCHA==

0 commit comments

Comments
 (0)