-
Notifications
You must be signed in to change notification settings - Fork 9
WIP rfc: unified-configuration #523
base: main
Are you sure you want to change the base?
Conversation
@siddhantk232 is attempting to deploy a commit to the fifthtry Team on Vercel. A member of the Team first needs to authorize it. |
add caption to code blocks and headings to note
Only FASTN.ftd is allowed to have config variables for now. `fastn.env()` is allowed in FASTN.ftd only
One question missing is what about recursive configurations? Eg A -> B -> C (with config) What do we see in @Arpita-Jaiswal, @siddhantk232 what do you think? |
I am assuming A, B and, C are packages where I think importing C's config will be a |
It being only allowed in C is not the issue, if two different values have been passed to C, one from A and another from B, what does C see? |
The only thought I am getting to resolve this is to say package confirmation variables are only available to fastn.app and fastn.auth packages and not to regular dependencies, and they are to only live with theme and explicitly passed variables via inherited. |
@siddhantk232 checkout the latest discussion I have written: https://github.com/orgs/fastn-stack/discussions/1477 Seems to solve all the concerns, and is also not much work implementation wise. |
I have proposed adding the least amount of changes that should give us what we want.
I thought a bit about security and other things too but nothing compelled me to change or add to the existing proposal.
Let me know if I missed anything @amitu and @Arpita-Jaiswal.