@quintype/framework 7.11.0-notfound-metadata.0 → 7.11.0
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
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [7.11.0](https://github.com/quintype/quintype-node-framework/compare/v7.10.5...v7.11.0) (2022-10-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* remove powered by quintype from the footer ([#334](https://github.com/quintype/quintype-node-framework/issues/334)) ([3dbc1f3](https://github.com/quintype/quintype-node-framework/commit/3dbc1f3144536a439ad0ecaacd2313cb6bb528e1))
|
|
11
|
+
|
|
5
12
|
### [7.10.5](https://github.com/quintype/quintype-node-framework/compare/v7.10.4...v7.10.5) (2022-10-17)
|
|
6
13
|
|
|
7
14
|
### [7.10.4](https://github.com/quintype/quintype-node-framework/compare/v7.10.3...v7.10.4) (2022-10-04)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/framework",
|
|
3
|
-
"version": "7.11.0
|
|
3
|
+
"version": "7.11.0",
|
|
4
4
|
"description": "Libraries to help build Quintype Node.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"homepage": "https://github.com/quintype/quintype-node-framework#readme",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
34
|
-
"@quintype/amp": "^2.
|
|
34
|
+
"@quintype/amp": "^2.7.2",
|
|
35
35
|
"@quintype/backend": "^2.3.3",
|
|
36
36
|
"@quintype/components": "^3.0.0",
|
|
37
37
|
"@quintype/prerender-node": "^3.2.26",
|
|
@@ -346,7 +346,7 @@ exports.notFoundHandler = function notFoundHandler(
|
|
|
346
346
|
req,
|
|
347
347
|
res,
|
|
348
348
|
next,
|
|
349
|
-
{ config, client, loadErrorData,
|
|
349
|
+
{ config, client, loadErrorData, renderLayout, pickComponent, logError, domainSlug }
|
|
350
350
|
) {
|
|
351
351
|
const url = urlLib.parse(req.url, true);
|
|
352
352
|
|
|
@@ -365,14 +365,11 @@ exports.notFoundHandler = function notFoundHandler(
|
|
|
365
365
|
})
|
|
366
366
|
.then((result) => {
|
|
367
367
|
const statusCode = result.httpStatusCode || 404;
|
|
368
|
+
|
|
368
369
|
const store = createStoreFromResult(url, result, {
|
|
369
370
|
disableIsomorphicComponent: false,
|
|
370
371
|
defaultPageType: "not-found",
|
|
371
372
|
});
|
|
372
|
-
console.log("seo-----------", seo);
|
|
373
|
-
const seoInstance = getSeoInstance(seo, config, result.pageType);
|
|
374
|
-
console.log("seoInstance---------");
|
|
375
|
-
const seoTags = seoInstance && seoInstance.getMetaTags(config, result.pageType || "not-found", result, { url });
|
|
376
373
|
|
|
377
374
|
res.status(statusCode);
|
|
378
375
|
res.setHeader("Cache-Control", "public,max-age=15,s-maxage=60, stale-while-revalidate=150,stale-if-error=3600");
|
|
@@ -381,8 +378,7 @@ exports.notFoundHandler = function notFoundHandler(
|
|
|
381
378
|
return pickComponent.preloadComponent(store.getState().qt.pageType, store.getState().qt.subPageType).then(() =>
|
|
382
379
|
renderLayout(res, {
|
|
383
380
|
config,
|
|
384
|
-
|
|
385
|
-
title: seoInstance ? seoInstance.getTitle(config, result.pageType, result) : result.title,
|
|
381
|
+
title: result.title,
|
|
386
382
|
content: renderReduxComponent(IsomorphicComponent, store, {
|
|
387
383
|
pickComponent,
|
|
388
384
|
}),
|