We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0763536 + 31582e9 commit 0344f3eCopy full SHA for 0344f3e
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@agility/content-fetch",
3
- "version": "0.5.4",
+ "version": "0.5.5",
4
"description": "JavaScript library for the Agility Fetch API (node and browser)",
5
"main": "dist/agility-content-fetch.node.js",
6
"scripts": {
src/utils.js
@@ -1,7 +1,7 @@
function buildRequestUrlPath(config, languageCode) {
let apiFetchOrPreview = null;
- if(config.isPreview) {
+ if(config.isPreview === true || config.isPreview === 'true') {
apiFetchOrPreview = 'preview';
} else {
7
apiFetchOrPreview = 'fetch';
0 commit comments