Comments (10)
I saw that many developers have faced this problem, but despite of tons of github issues none of them presented the solution...
@Balastrong you didn`t found any solutions for it yet?
from github-stats.
I have found a lot of related issues, the same problem i would say. But none of them referring to permanent solutions. If you don`t want to be replacing the url every time the app is deployed i would suggest you to take a look at Clerk
If you found it interesting and applicable to this project, i would like to contribute with the implementation.
from github-stats.
Hi?
Can i have more details about this one? I would like to fix this one.
from github-stats.
Hey @Steravy, thanks for the help!
There's already some information in the description of the issue, the GitHub App wants an exact match on the callback but when deploying preview builds on Vercel it has a different URL every time.
It's not a "code" issue but rather something that has to be set somewhere, the questions are... what and where :D
Like, a wildcard on the app settings? I haven't found if this is actually possible, or passing nextauth a URL that matches one set in the app settings?
I'm open to suggestions :)
from github-stats.
hi @Balastrong,
I found this doc
<project-name>-<scope-slug>.vercel.app;
<project-name>-<author-name>-<scope-slug>.vercel.app;
my-project-git-this-is-really-an-extremely-long-bra-abc123xyz-scope-slug.vercel.app;
I am not sure is this what you want, please feel free to discuss.
from github-stats.
Thank you @ochowei!
Yes, that one is how the url is formed but on the GitHub App settings I can only put the exact link where the auth request comes from.
This means that if there is a different link for each branch/author, this can't work unfortunately :(
from github-stats.
@Balastrong If any other solutions wasn't yet implemented i believe i do have an idea to overcome this issue.
from github-stats.
@Steravy no, I haven't found a solution yet. Suggestions are more than welcome! :)
from github-stats.
Thank you @Steravy! The plan for now was to use a github app but I'll keep in mind that Cleck might be a valid option :)
from github-stats.
I'm not a fan of theory parody, but I've been brainstorming a solution to the problem of callback URLs for Vercel deployment previews. I think that DNS wildcards could be a good solution.
A DNS wildcard record matches any subdomain of a given domain. For example, a DNS wildcard record for *.eeee.com would match preview.eeee.com, api.eeee.com, and any other subdomain of example.eeee.com.
To use a DNS wildcard record to solve the callback URL problem, you would create a record for *.eeee.com that points to your Vercel deployment preview. You could then update your callback URL in GitHub to point to *.eeee.com. This would ensure that users are redirected to your Vercel deployment preview after they sign in to your GitHub App, regardless of which subdomain they are using.
from github-stats.
Related Issues (20)
- Add custom sorting HOT 4
- Add node version in package.json
- GraphQL Query Fails with Status Code 200 on the Stats Page While Running Locally. HOT 3
- chore: add cursor pointer HOT 2
- Feat : Clipboard Img copy alert HOT 1
- Feat : line-chart to show the most contributed repos HOT 2
- Feat:Change State Display ( instead of name display GitHub icon for UI performance)
- Hide own repositories HOT 2
- Card view adds horizontal scroll HOT 3
- ThemeSelector icon color not changing on dark mode HOT 1
- Broken layout if contribution title is too long HOT 4
- Add tooltip to long PR titles HOT 9
- Broken responsive layout in stats page HOT 1
- Add Copy button for format Text, JSON
- Just login and can see all stats HOT 1
- Refactoring stats page HOT 1
- [a11y]: color contrast is low and missing labels for the for form HOT 1
- Close dropdown on item click HOT 3
- Wrong icon in open Pull Requests HOT 5
- bug: profile card should have more width HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-stats.