-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: override defaults #1503
base: main
Are you sure you want to change the base?
feat: override defaults #1503
Conversation
🦋 Changeset detectedLatest commit: 396160d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Mvmo is attempting to deploy a commit to the t3-oss Team on Vercel. A member of the Team first needs to authorize it. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://create-t3-app-git-fork-mvmo-feature-override-t3-oss.vercel.app/ |
Closes #1078
✅ Checklist
Changelog
I've implemented a function which is called at the end of the scaffold, which then looks up some default places for configs and if there's a t3stack directory (optionally the config dir can be configured by the T3_CONFIG env var directly), if so it checks if that contains a override/ directory, which then is copied into the just scaffolded project.
On the screenshots i've wrote overwrites but changed it to overrides as a quick google search confirmed, that it's the correct term in this case 😅
Screenshots
Without any config dir nothing changes
When having a t3stack inside the XDG_CONFIG_HOME with a file to overwrite
It uses it to scaffold the project
And it also works with the T3_CONFIG/override
💯