LiveDuo / destack

Page builder for Next.js 🅧. Zero-config deployment 🚀. React now supported!
MIT License
1.56k stars 314 forks source link

Vercel doesn't support write to data/default.json #68

Closed beingArkReal closed 1 year ago

beingArkReal commented 1 year ago

I am not able to write default.json files in production, deployed using vercal. Because of this, I am not able to edit landing pages I've created using this editor.

LiveDuo commented 1 year ago

@beingArkReal Destack is meant to edit the pages in development and deploy them to production where they can't be edited.

More information

There's a showInProduction prop that can be used to get the destack grapes editor shown in production. That's for demonstration purposes and is not easily extensible. After all, Vercel runs on docker images that have no persistent filesystem. Changes in production would require user authentication and saving the data to the corresponding repository.

beingArkReal commented 1 year ago

@LiveDuo

We forked the package and added content prop to directly load data to grapeJS. Now working as expected thanks for the replay.

LiveDuo commented 1 year ago

@beingArkReal Might be worth if you are making changes to the core logic.