Socket
Book a DemoInstallSign in
Socket

@agility/nextjs

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agility/nextjs

Agility CMS support for NextJS and Next Image

Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
487
-5.44%
Maintainers
4
Weekly downloads
 
Created
Source

agility-next

Next.js support for Agility CMS.

This package makes it easy to get started with Agility CMS and Next.js. Also includes support Nextjs Image using the AgilityImage component.

Notes

The agility object that is passed around is either the store property from the Agility Sync SDK, or the api object of the Fetch SDK.

These objects are nearly identical, and can be used interchangably.

By default, this will use the REST API, however a local filesytem sync can be enabled by setting an environment variable called AGILITY_SYNC=true.

If the Sync SDK is enabled and a local file system is unavailable, it will fallback to using the REST API. This is important when doing SSR or ISR mode where a serverless function is doing the work and does NOT have a local file system.

As of version 0.4.0, the REST API is used by deafult.

Keywords

next

FAQs

Package last updated on 22 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts