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

feat: use experimental env 💣 #31

Merged
merged 1 commit into from
Jul 31, 2024
Merged

feat: use experimental env 💣 #31

merged 1 commit into from
Jul 31, 2024

Conversation

avevotsira
Copy link
Owner

No description provided.

Copy link

size-limit report 📦

Path Size
/*.html 10.86 KB (0%)
/_astro/*.js 49.77 KB (0%)
/_astro/*.css 4.46 KB (0%)

@avevotsira avevotsira merged commit 6c35d5f into main Jul 31, 2024
2 checks passed

export const GET: APIRoute = async ({ url, redirect }) => {
const clientId = getSecret(OAUTH_GITHUB_CLIENT_ID);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want to either use the imported env directly or getSecret not both

and if you did getSecret it would be getSecret("OAUTH_GITHHUB_CLIENT_ID")


export const authUrl = `https://github.com/login/oauth/authorize?client_id=${clientId}&scope=repo,user`;
export const tokenUrl = "https://github.com/login/oauth/access_token";

export const prerender = "false";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just remove this file entirely since youll be getting these values inside each file directly

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

Successfully merging this pull request may close these issues.

2 participants