gatsby-core-theme 44.4.30 → 44.4.31

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [44.4.31](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.30...v44.4.31) (2025-08-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * testing direct redirect ([bdfe1b4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bdfe1b491ec9c7f2d11d54905260213df7945706))
7
+
1
8
  ## [44.4.30](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.29...v44.4.30) (2025-08-06)
2
9
 
3
10
 
package/gatsby-node.mjs CHANGED
@@ -71,7 +71,7 @@ const relations = {};
71
71
 
72
72
  // eslint-disable-next-line import/prefer-default-export
73
73
  export const createPages = async (
74
- { actions: { createPage } },
74
+ { actions: { createPage, createRedirect } },
75
75
  themeOptions
76
76
  ) => {
77
77
  process.env.GATSBY_SITE_NAME = String(themeOptions.siteName);
@@ -282,23 +282,34 @@ export const createPages = async (
282
282
  }
283
283
  });
284
284
 
285
- trackingPages.forEach(({ path, page, operator }) => {
286
- createPage({
287
- path,
288
- component: `${__dirname}/src/components/${
289
- process.env.IS_TRACKING_SSR === "true"
290
- ? "app-tracker-ssr.js"
291
- : "app-tracker.js"
292
- }`,
293
- context: {
294
- page,
295
- siteGeneralData,
296
- operator,
297
- isTracker: true,
298
- isLiveStreamProvider: false,
299
- },
285
+ if(process.env.DISABLE_TRACKING_PAGE ){
286
+ trackingPages.forEach(({ path, page, operator }) => {
287
+ createRedirect({
288
+ fromPath: path,
289
+ toPath: `/api/redirect?operator=${operator.short_name}&template=${page.template}&path=${path}`,
290
+ isPermanent: true,
291
+ redirectInBrowser: false,
292
+ });
293
+ })
294
+ }else{
295
+ trackingPages.forEach(({ path, page, operator }) => {
296
+ createPage({
297
+ path,
298
+ component: `${__dirname}/src/components/${
299
+ process.env.IS_TRACKING_SSR === "true"
300
+ ? "app-tracker-ssr.js"
301
+ : "app-tracker.js"
302
+ }`,
303
+ context: {
304
+ page,
305
+ siteGeneralData,
306
+ operator,
307
+ isTracker: true,
308
+ isLiveStreamProvider: false,
309
+ },
310
+ });
300
311
  });
301
- });
312
+ }
302
313
  };
303
314
 
304
315
  export const onCreatePage = async ({ page, actions }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.4.30",
3
+ "version": "44.4.31",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",