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

CHORE: Refactor Backend ENV configuration #216

Open
zacktraczyk opened this issue Oct 22, 2023 · 0 comments
Open

CHORE: Refactor Backend ENV configuration #216

zacktraczyk opened this issue Oct 22, 2023 · 0 comments
Assignees

Comments

@zacktraczyk
Copy link
Member

Configuration for backend parameters has been done using firebase secrets which is not supported in gen2 of firebase functions. Runtime environment configuration should be refactored to use parametrized configuration instead.

Below is are old .runtimeconfig.json it should be refactored to a .env that is imported using parameterized configuration:

{
  "client_vars": {
    "client_id": "1RiqNC6JvHgn7xre4mfScHJMEq75wlsq",
    "client_secret": "VvvmwMKiE91Iyt2v_eDOwbyG6fZxBmKnLnHJmxfiVLbOVfLxdC"
  },
  "auth": {
    "issuer": "https://cruzhacks.us.auth0.com/",
    "cors": "*",
    "audience": "https://cruzhacks.development",
    "jwk_uri": "https://cruzhacks.us.auth0.com/"
  },
  "app": {
    "bucket": "gs://cruzhacks-2023-development.appspot.com",
    "apikey": "AIzaSyDC-OCAVUXuIBV--vudjepYhrtf-o4fo4U"
  },
  "verify_recaptcha": {
    "secret_key": "6Lf962oiAAAAANW2UOLc8Ms43UHQuT0NvHAaCNfv",
    "site_key": "6LcvxuAjAAAAAMEu1mbQSPIcs4vSWbZ0YItwteOi",
    "base_google_endpoint": "https://www.google.com/recaptcha/api/siteverify"
  },
  "subscribe": {
    "react_app_api_key": "6xzQBDBfn4npy5ehpuh22-4QyNsaLnGaVttGDh2dhXA"
  },
  "rtdb": {
    "url": "https://cruzhacks-2023-development-default-rtdb.firebaseio.com/"
  }
}
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

2 participants