Skip to content

Commit b3aa1cf

Browse files
committed
deploy fixes
1 parent 06aac64 commit b3aa1cf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/docusaurus.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ const config: Config = {
1515
},
1616

1717
// Set the production url of your site here
18-
url: 'https://siddhantbg.github.io',
18+
url: process.env.VERCEL_URL
19+
? `https://${process.env.VERCEL_URL}`
20+
: 'https://siddhantbg.github.io',
1921
// Set the /<baseUrl>/ pathname under which your site is served
2022
// For GitHub pages deployment, it is often '/<projectName>/'
21-
baseUrl: '/remove-comments-cli/',
23+
baseUrl: process.env.VERCEL ? '/' : '/remove-comments-cli/',
2224

2325
// GitHub pages deployment config.
2426
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)