Skip to content

Commit

Permalink
docs: use Vercel for PR preview (#52)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: switch base path by VERCEL

* fix: include dist to outputs
  • Loading branch information
fand authored Jun 7, 2024
1 parent ed4e78f commit 761f2ee
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
30 changes: 18 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@react-spring/web": "^9.2.3",
"@react-three/fiber": "^8.6.0",
"@react-three/postprocessing": "^2.6.2",
"dedent": "^0.7.0",
"dedent": "^1.5.3",
"is-mobile": "^3.0.0",
"lodash.debounce": "^4.0.8",
"postprocessing": "^6.28.6",
Expand All @@ -37,7 +37,7 @@
"@types/three": "^0.143.2",
"@vitejs/plugin-react": "^2.0.1",
"rimraf": "^3.0.2",
"typescript": "^4.6.4",
"typescript": "^5.4.5",
"vite": "^3.0.7"
}
}
2 changes: 1 addition & 1 deletion packages/docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { viteCommonjs } from "@originjs/vite-plugin-commonjs";

// https://vitejs.dev/config/
export default defineConfig({
base: "/react-vfx/",
base: process.env.VERCEL ? "" : "/react-vfx/",
plugins: [react(), viteCommonjs()],
});
2 changes: 1 addition & 1 deletion packages/react-vfx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"typescript": "^4.3.5"
"typescript": "^5.4.5"
},
"homepage": "https://amagi.dev/react-vfx",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
],
"outputs": [
"lib",
"build"
"build",
"dist"
]
},
"dev": {
Expand Down

0 comments on commit 761f2ee

Please sign in to comment.