cyber-villains / typovillain.com

Interactive API documentation website
GNU General Public License v3.0
0 stars 0 forks source link

Environment Variables #16

Open cyber-villains opened 9 months ago

cyber-villains commented 9 months ago

There are a few values that should be replaced with environment variables.

For example, this cognito URL should be passed from the environment. (source)

} else {
    // TODO: env vars for URLs
    authBtn = (
        <a 
        href="https://auth.typovillain.com/login?client_id=6gnt6nvgsk07jomm8ie538gkdt&response_type=code&scope=aws.cognito.signin.user.admin+email+openid&redirect_uri=https%3A%2F%2Fapi.typovillain.com%2Foauth2%2Fcallback" 
        style={{marginLeft: 15, cursor: "pointer"}}
        className='fw-normal button button--outline button--primary'
        >
            Sign up / Login
        </a>
    );
}

This is the only one for now, but the general setup would be nice.

algoplutus1708 commented 9 months ago

Please assign this issue to me , I plan to create a pull request during the month of October so that it can be counted towards Hacktoberfest 2023. Thank u!!

cyber-villains commented 9 months ago

@algoplutus1708 assigned it you. Let us know if you need anything. Thanks!

algoplutus1708 commented 9 months ago

Ok thanks will update u!