Skip to content

Commit

Permalink
Update vercel build config (#1276)
Browse files Browse the repository at this point in the history
  • Loading branch information
gksander authored May 11, 2023
1 parent 8d5e0cc commit ebbf5a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
13 changes: 0 additions & 13 deletions website/docusaurus-vercel.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ async function createConfig() {
tagline:
'A React.js based library for creating sleek presentations using JSX syntax that gives you the ability to live demo your code.',
url: 'https://formidable.com',
baseUrl: '/open-source/spectacle',
baseUrl:
process.env.VERCEL_ENV === 'preview' ? '/' : '/open-source/spectacle',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build --out-dir build/open-source/spectacle",
"build:vercel": "docusaurus build --out-dir build/open-source/spectacle --config docusaurus-vercel.config.js",
"build:vercel": "docusaurus build",
"clear": "docusaurus clear",
"serve": "formideploy serve",
"deploy:stage": "formideploy deploy --staging",
Expand Down Expand Up @@ -124,4 +124,4 @@
"last 1 safari version"
]
}
}
}

1 comment on commit ebbf5a8

@vercel
Copy link

@vercel vercel bot commented on ebbf5a8 May 11, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.