@quintype/framework 7.34.4 → 7.34.5-amp-ad-free.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.34.4",
3
+ "version": "7.34.5-amp-ad-free.1",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -144,6 +144,10 @@ async function ampStoryPageHandler(
144
144
  });
145
145
  merge(mergedAdditionalConfig, additionalConfig, fetchedAdditionalConfig);
146
146
  }
147
+ // the query appending happens in the worker, this is needed for any publisher who needs ad-free in amp story
148
+ if(req && req.query && req.query.subscriber === "true") {
149
+ merge(additionalConfig, { subscriber: true })
150
+ }
147
151
  const optimizeAmpHtml = get(domainSpecificOpts, ["featureConfig", "optimizeAmpHtml"], true);
148
152
  const ampHtml = ampifyStory({
149
153
  story,