Skip to content

Commit 1947e1a

Browse files
feat: Add Vercel hosting support alongside Netlify
Add vercel.json with build config, headers, and redirects converted from Netlify format. Update docusaurus.config.ts to detect both Netlify and Vercel environments. Add Vercel-specific build/deploy scripts without modifying existing commands.
1 parent ad88dab commit 1947e1a

5 files changed

Lines changed: 560 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ website/build/
3333
!.yarn/releases
3434
!.yarn/sdks
3535
!.yarn/versions
36+
.vercel
37+
.env*.local

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
"lint:plugins": "yarn workspace @react-native-website/remark-codeblock-language-as-title lint && yarn workspace @react-native-website/remark-lint-no-broken-external-links lint && yarn workspace @react-native-website/remark-snackplayer lint && yarn workspace @react-native-website/remark-lint-no-broken-external-links test && yarn workspace @react-native-website/remark-snackplayer test",
2323
"lint:website": "eslint ./website ./docs",
2424
"update-lock": "npx yarn-deduplicate",
25-
"check-dependencies": "manypkg check"
25+
"check-dependencies": "manypkg check",
26+
"build:vercel": "yarn --cwd website build:vercel",
27+
"build:vercel:fast": "yarn --cwd website build:vercel:fast",
28+
"dev:vercel": "vercel dev"
2629
},
2730
"devDependencies": {
2831
"@eslint/css": "^1.0.0",

0 commit comments

Comments
 (0)