@zesty-io/nextjs-sync v0.0.2
nextjs-sync
Tools for working with nextjs + zesty
Sync
Sync a zesty instance content and settings. Mapping them to nextjs env variables, configurations and components.
bin/syncSync will always update the .zesty directory JSON files and .env variables to the latest instance values.
Sync relies on the @zesty-io/cli init and auth:login commands. The init command handles initial authentication and instance creation or selection. It creates the .zesty directory which holds instance and project specific data. The init command must be run before the sync.
Sync relies on the @zesty-io/node-sdk. This is used for orchestrating authenticated API requests.
Redirects
Re-exports the @zesty-io/webengine-json redirect function but shapes the response to match the nextjs expected redirect data shape detailed in their documentation.