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 +7 -0
- package/gatsby-node.mjs +28 -17
- package/package.json +1 -1
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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 }) => {
|