Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions libs/remix-ui/home-tab/src/lib/components/constant.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
export const HOME_TAB_BASE_URL = process.env.CIRCLE_BRANCH === 'remix_beta' ?
'https://raw.githubusercontent.com/remix-project-org/remix-dynamics/refs/heads/beta/' : process.env.CIRCLE_BRANCH === 'remix_live' ?
'https://raw.githubusercontent.com/remix-project-org/remix-dynamics/refs/heads/live/' :
'https://raw.githubusercontent.com/remix-project-org/remix-dynamics/refs/heads/alpha/'
const branches = {
'remix-beta.ethereum.org': 'beta',
'remix-alpha.ethereum.org': 'alpha',
'remix.ethereum.org': 'live'
}

const getBaseUrl = () => {
const branch = branches[window.location.hostname] || 'live'
return `https://raw.githubusercontent.com/remix-project-org/remix-dynamics/refs/heads/${branch}/`
}

export const HOME_TAB_BASE_URL = getBaseUrl()
export const HOME_TAB_NEW_UPDATES = HOME_TAB_BASE_URL + 'hometab/new-updates.json'
export const HOME_TAB_PLUGIN_LIST = HOME_TAB_BASE_URL + 'hometab/plugin-list.json'
export const HOME_TAB_PLUGIN_LIST = HOME_TAB_BASE_URL + 'hometab/plugin-list.json'