Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
![](https://camo.githubusercontent.com/350d5f215a5a590e041086a912740eb3592c0956ecb767576d9f664c6eedc1b7/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313132363437383332323438323830363934352f313132363732393431373732393737333538382f696d6167652e706e67)
When having a t3stack inside the XDG_CONFIG_HOME with a file to overwrite
![](https://camo.githubusercontent.com/8b743b7603f8b58f919f829944d468c7de1b7490a25f630bdef13257c8a4d3f8/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313132363437383332323438323830363934352f313132363733313235333337353332343234312f696d6167652e706e67)
It uses it to scaffold the project
![](https://camo.githubusercontent.com/9e64ab7090c8fff148f2010a5a6d02dcd2f679dac25eab596934b2c256aaf213/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313132363437383332323438323830363934352f313132363733313731333135343932383734322f696d6167652e706e67)
And it also works with the T3_CONFIG/override
![](https://camo.githubusercontent.com/975feb1e56edf74386edc997bf821f3e7b653190fc234d62e25bf2a3166abf60/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313132363437383332323438323830363934352f313132363733323536333936353238303235362f696d6167652e706e67)
π―