From 0fa39b015d15e09040ba9a400561fc95b9d8bfda Mon Sep 17 00:00:00 2001 From: Remko Date: Fri, 26 Jan 2024 13:02:02 +0100 Subject: [PATCH] added security.txt --- pwa/gatsby-config.js | 8 ++++++++ pwa/package-lock.json | 12 ++++++++++++ pwa/package.json | 7 +++++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/pwa/gatsby-config.js b/pwa/gatsby-config.js index e2400e1..862ff8e 100644 --- a/pwa/gatsby-config.js +++ b/pwa/gatsby-config.js @@ -40,5 +40,13 @@ module.exports = { ], }, }, + { + resolve: "gatsby-plugin-security-txt", + options: { + contact: "mailto:info@conduction.nl", + expires: "2024-12-31T23:00:00.000Z", + languages: "nl, en", + }, + }, ], }; diff --git a/pwa/package-lock.json b/pwa/package-lock.json index 10bcebf..681dbf5 100644 --- a/pwa/package-lock.json +++ b/pwa/package-lock.json @@ -54,6 +54,7 @@ "gatsby": "^5.13.2", "gatsby-plugin-breadcrumb": "^12.3.2", "gatsby-plugin-layout": "^4.13.1", + "gatsby-plugin-security-txt": "^1.2.1", "html-react-parser": "^5.1.1", "i18next": "^23.7.18", "jose": "^5.2.0", @@ -10183,6 +10184,17 @@ "gatsby": "^5.0.0-next" } }, + "node_modules/gatsby-plugin-security-txt": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/gatsby-plugin-security-txt/-/gatsby-plugin-security-txt-1.2.1.tgz", + "integrity": "sha512-AL2q2YQ4NtZsYp95C4mao74ETwBzSBlRB47PkDsK5BRieLovcM0E3kjSb7BJ6jGvX+5U3yKBspo/WJf1+Mad/A==", + "dependencies": { + "fs-extra": "^11.1.0" + }, + "peerDependencies": { + "gatsby": "^4.0.0 || ^5.0.0" + } + }, "node_modules/gatsby-plugin-typescript": { "version": "5.13.1", "resolved": "https://registry.npmjs.org/gatsby-plugin-typescript/-/gatsby-plugin-typescript-5.13.1.tgz", diff --git a/pwa/package.json b/pwa/package.json index 0d16049..575c351 100644 --- a/pwa/package.json +++ b/pwa/package.json @@ -4,7 +4,9 @@ "private": true, "description": "Product Website Template", "author": "Conduction", - "keywords": ["gatsby"], + "keywords": [ + "gatsby" + ], "scripts": { "develop": "gatsby develop", "start": "gatsby develop", @@ -68,6 +70,7 @@ "gatsby": "^5.13.2", "gatsby-plugin-breadcrumb": "^12.3.2", "gatsby-plugin-layout": "^4.13.1", + "gatsby-plugin-security-txt": "^1.2.1", "html-react-parser": "^5.1.1", "i18next": "^23.7.18", "jose": "^5.2.0", @@ -99,11 +102,11 @@ "@typescript-eslint/eslint-plugin": "^6.19.1", "@typescript-eslint/parser": "^6.19.1", "eslint": "^8.56.0", - "jose": "^5.2.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-react": "^7.33.2", "gh-pages": "^6.1.1", "husky": "^8.0.3", + "jose": "^5.2.0", "lint-staged": "^15.2.0", "npm-run-all": "^4.1.5", "prettier": "^3.2.4",