Skip to content

Commit

Permalink
Adding Splitbee. (#6636)
Browse files Browse the repository at this point in the history
  • Loading branch information
bladey authored Sep 23, 2021
1 parent 310bc1f commit 6e5eac1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class MyDocument extends Document {
async
src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"
/>
<script async data-api="/_sb" src="/sb.js" />
<script async src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`} />
<script
dangerouslySetInnerHTML={{
Expand Down
16 changes: 15 additions & 1 deletion docs/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,18 @@ const CURRENT = [
},
];

module.exports = [...CURRENT, ...ORIGINAL_NEXT, ...KEYSTONE_5, ...KEYSTONE_4];
/* Splitbee Proxy */
const SPLITBEE = [
{
source: '/sb.js',
destination: 'https://cdn.splitbee.io/sb.js',
permanent: false,
},
{
source: '/_sb/:slug',
destination: 'https://hive.splitbee.io/:slug',
permanent: false,
},
];

module.exports = [...SPLITBEE, ...CURRENT, ...ORIGINAL_NEXT, ...KEYSTONE_5, ...KEYSTONE_4];

1 comment on commit 6e5eac1

@vercel
Copy link

@vercel vercel bot commented on 6e5eac1 Sep 23, 2021

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.