Skip to content

Commit 021e542

Browse files
fix(website): only allow edits on next branch
1 parent 08a7adf commit 021e542

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/overmind-website/src/utils.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ export const viewport = {
1212
},
1313
}
1414

15-
export const getBranch = () =>
16-
location.host.split('.')[0] === 'next' || location.hostname === 'localhost'
17-
? 'next'
18-
: 'master'
19-
2015
export const getGithubBaseUrl = () =>
21-
`https://github.com/cerebral/overmind/edit/${getBranch()}/packages/overmind-website/`
16+
`https://github.com/cerebral/overmind/edit/next/packages/overmind-website/`
2217

2318
export const getTheme = () => localStorage.getItem('theme') || 'react'
2419

0 commit comments

Comments
 (0)