RFC: overrides
#132
Replies: 4 comments 9 replies
-
Great idea, I would propose making the cache policy more user friendly. Usually you'd just want to pass a list of headers/cookies/queries that you can to forward to the origin. So instead of having the user create the CachePolicy construct, just let them pass in an array of strings for each of the caches. |
Beta Was this translation helpful? Give feedback.
-
Overall this seems like a nice option to have - being able to customize everything would likely save people form having to fork this project to deploy exactly what they need. What you propose seems like a very positive thing, period. I guess my only general high level question are people who really need to customize the way these Constructs work going to just fork the project anyway? Being able to override everything is great, but at the same time I feel like there could be an argument to just provide customization hooks / overrides for (as an example) the top 5-10 things people might actually want to customize and provide solid documentation around how / why you might customize those things? Domain name setup, caching behavior, Lambda runtime / performance / scaling configuration, etc (those are just things that come to mind). Provide meaningful customization hooks for 75% of users who might not need absolute control over everything, and provide useful off-boarding instructions (tbqh not sure what that means here 😂) for those who might need to go deeper? |
Beta Was this translation helpful? Give feedback.
-
I think it's a fine idea, maybe it could match the I would just say make it clear if the overrides are being merged with existing options or overwriting the defaults. |
Beta Was this translation helpful? Give feedback.
-
Released in https://github.com/jetbridge/cdk-nextjs/releases/tag/v4.0.0-beta.18 |
Beta Was this translation helpful? Give feedback.
-
Hi, I'd like to get the community's thoughts on a new top level prop called
overrides
. This prop would enabled overriding the props passed to every construct instantiated inNextjs
and would be likely remove the need fordefaults
. This would close multiple issues (#118, #104, #73) requesting greater levels of customization. Here is the gist of my proposal:cc: @revmischa, @kevin-mitchell, @khuezy
Note:
Partial<>
versions of types needed for proposal can be generated. See here.Beta Was this translation helpful? Give feedback.
All reactions