avitorio / outstatic

Outstatic - A static CMS for Next.js
https://Outstatic.com
MIT License
2.67k stars 157 forks source link

Is there an elegant way to update the version of outstatic? #39

Closed Summpot closed 1 year ago

Summpot commented 1 year ago

Although it is possible to change package.json directly from the local repository to update the outstatic version, what is the reason to clone a local repository if all our content updates only need to be done in the dashboard? Is it possible to add a button to update the outstatic version in the dashboard?

avitorio commented 1 year ago

Hey,

I haven't thought about this before.

It is possible.

We'd need to make sure the button isn't available on versions with breaking changes...

I am afraid we of messing with people's package.json...

Can you start a discussion in the ideas channel for us to think about possible ways this could work or go wrong?

Summpot commented 1 year ago

Maybe you can turn this issue into discussions?

My understanding of breaking changes is that users should be responsible for what they do, and should only press that "button" if they really need to update.

And if you encounter serious corrupt changes, such as an api being renamed or deleted, the build will fail while the user's page will not receive any impact.

All we need to do is put a prominent enough warning near the button to inform the user of the consequences of pressing the button.

avitorio commented 1 year ago

Closed for this: https://github.com/avitorio/outstatic/discussions/41