Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace function getProjectConfig with const #325

Open
groninge01 opened this issue Dec 15, 2024 · 0 comments
Open

replace function getProjectConfig with const #325

groninge01 opened this issue Dec 15, 2024 · 0 comments

Comments

@groninge01
Copy link
Contributor

packages/lib/config/getProjectConfig.ts

export const PROJECT_CONFIG = process.env.NEXT_PUBLIC_PROJECT_ID
  ? allProjects[process.env.NEXT_PUBLIC_PROJECT_ID]
  : ProjectConfigBalancer

export const isBeetsProject = PROJECT_CONFIG.projectId === 'beets'
export const isBalancerProject = PROJECT_CONFIG.projectId === 'balancer'

// TODO replace with just PROJECT_CONFIG everywhere
export function getProjectConfig() {
  return PROJECT_CONFIG
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant