Created
July 18, 2021 18:37
-
-
Save j2is/c1bda9ff7663c78ce443d0268751d0ca to your computer and use it in GitHub Desktop.
Next Sanity Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const config = { | |
dataset: process.env.NEXT_PUBLIC_SANITY_DATASET || "production", | |
projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID, | |
apiVersion: "2021-03-25", | |
/** | |
* Set useCdn to `false` if your application require the freshest possible | |
* data always (potentially slightly slower and a bit more expensive). | |
* Authenticated request (like preview) will always bypass the CDN | |
**/ | |
useCdn: process.env.NODE_ENV === "production", | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment