Skip to content

Commit

Permalink
Speed up build, add trailing slash redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jul 19, 2023
1 parent e793649 commit f6bda45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "bash ./build.sh",
"start": "bash ./start.sh",
"start": "bash ./serve.sh",
"dev": "yarn build && yarn start & nodemon -e mdx,md --exec \"bash\" ./nodemon.sh & wait"
},
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion docs/start.sh → docs/serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
cd "${SCRIPT_DIR}"

cd _dist/docs_skeleton
yarn start
yarn run serve
2 changes: 1 addition & 1 deletion docs/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"redirects": [
{
"source": "/docs",
"source": "/docs(/?)",
"destination": "/docs/get_started/introduction"
},
{
Expand Down

0 comments on commit f6bda45

Please sign in to comment.