Skip to content

Commit

Permalink
build: 🔧 added rewrite path for vercel (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Wagoner <jakewagoneredu@gmail.com>
  • Loading branch information
kirangadhave and JakeWags authored Jan 31, 2023
1 parent bd2ead5 commit 8d323bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const withNextra = require('nextra')({
themeConfig: './theme.config.jsx',
});

module.exports = withNextra();
module.exports = withNextra({
basePath: '/trrack',
});

// If you have other Next.js configurations, you can pass them as the parameter:
// module.exports = withNextra({ /* other next.js config */ })
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/", "destination": "/trrack" }]
}

1 comment on commit 8d323bd

@vercel
Copy link

@vercel vercel bot commented on 8d323bd Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

trrackjs – ./

trrackjs-git-main-trrack.vercel.app
trrackjs.vercel.app
trrackjs-trrack.vercel.app

Please sign in to comment.