Should (payload)
be considered Sacred?
#7863
Replies: 5 comments 2 replies
-
noob v2 user here - I assumed this was how things already worked in v3! So, +1 for adopting this convention / gen script. I noticed a lot of this code comment when I first poked around the v3 demo: I guess this is a new concern with v3, since the routing logic that used to be encapsulated within |
Beta Was this translation helpful? Give feedback.
-
Totally agree , |
Beta Was this translation helpful? Give feedback.
-
It would also be nice, if we could gitignore the |
Beta Was this translation helpful? Give feedback.
-
A lot of what we do in config atm are things that theoretically can be done by fiddling the (payload) folder. Support. The Payload Team should make a judgement call whether (payload) should be off-limits, or offload a lot of the config complexity to (payload) and assume people would mess with it like any other next app route. |
Beta Was this translation helpful? Give feedback.
-
Maybe a pattern like Remix's |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The latest breaking change and the directory structure people come up with (e.g. https://discord.com/channels/967097582721572934/967097582721572937/1277561801709719623) makes me think: Should Payload demand the
(payload)
folder be left alone by the users?Allowing users to modify the folder means extra debugging headaches (as we can't guarantee the files have not been tampered with) and makes breaking changes like what just happened in Beta 79 harder to run than necessary.
If we say
(payload)
is off limits, then provide tools to re-generate the folder on demand (which also applies if the route to/admin
changes, then the script would change theadmin
folder automatically), then we would have more flexibility in updating the folder as breaking changes like in beta.79 would be reduced to "Re-runnpm generate:payloadFolder
for most people.Beta Was this translation helpful? Give feedback.
All reactions