From 383ebdd373b1986bc03b95b9a9ea7ac76088e1ab Mon Sep 17 00:00:00 2001 From: Jcanotorr06 Date: Tue, 20 Dec 2022 17:18:15 -0500 Subject: [PATCH 1/5] fix: correct manifest.json name and short_name --- public/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index 0eeba5a..99b3f10 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "name": "PWA App", - "short_name": "App", + "name": "Dev Toolbox", + "short_name": "Dev Toolbox", "theme_color": "#FFFFFF", "background_color": "#FFFFFF", "start_url": "/", From 38202b2c2994b53a285ec90b156c85b67808c565 Mon Sep 17 00:00:00 2001 From: Jcanotorr06 Date: Tue, 20 Dec 2022 17:32:08 -0500 Subject: [PATCH 2/5] dependency: install new dependency next-sitemap --- package.json | 2 ++ yarn.lock | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f58edce..0d7e393 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "private": false, "scripts": { "build": "next build", + "postbuild": "next-sitemap", "dev": "next dev", "lint": "next lint", "start": "next start" @@ -46,6 +47,7 @@ "next": "13.0.2", "next-pwa": "^5.6.0", "next-seo": "^5.15.0", + "next-sitemap": "^3.1.43", "react": "18.2.0", "react-dom": "18.2.0", "react-icons": "^4.7.1", diff --git a/yarn.lock b/yarn.lock index 77105c5..d488919 100644 --- a/yarn.lock +++ b/yarn.lock @@ -917,6 +917,11 @@ "@babel/helper-validator-identifier" "^7.19.1" to-fast-properties "^2.0.0" +"@corex/deepmerge@^4.0.29": + version "4.0.29" + resolved "https://registry.yarnpkg.com/@corex/deepmerge/-/deepmerge-4.0.29.tgz#af9debf07d7f6b0d2a9d04a266abf2c1418ed2f6" + integrity sha512-q/yVUnqckA8Do+EvAfpy7RLdumnBy9ZsducMUtZTvpdbJC7azEf1hGtnYYxm0QfphYxjwggv6XtH64prvS1W+A== + "@emotion/is-prop-valid@^0.8.2": version "0.8.8" resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a" @@ -3404,7 +3409,7 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" -minimist@^1.2.0, minimist@^1.2.6: +minimist@^1.2.0, minimist@^1.2.6, minimist@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== @@ -3456,6 +3461,14 @@ next-seo@^5.15.0: resolved "https://registry.yarnpkg.com/next-seo/-/next-seo-5.15.0.tgz#b1a90508599774982909ea44803323c6fb7b50f4" integrity sha512-LGbcY91yDKGMb7YI+28n3g+RuChUkt6pXNpa8FkfKkEmNiJkeRDEXTnnjVtwT9FmMhG6NH8qwHTelGrlYm9rgg== +next-sitemap@^3.1.43: + version "3.1.43" + resolved "https://registry.yarnpkg.com/next-sitemap/-/next-sitemap-3.1.43.tgz#f29ce7de7a7ea5cce95b36512cf06b8d30606abf" + integrity sha512-TshDAP69OjHwvszedQ/jBvOjzqy7Gm9NU3ZIP30X3e1qXsNVOVF5uzi9kQOI6v0uBG08QUOk9wKNSIk3zI/wjQ== + dependencies: + "@corex/deepmerge" "^4.0.29" + minimist "^1.2.7" + next@13.0.2: version "13.0.2" resolved "https://registry.yarnpkg.com/next/-/next-13.0.2.tgz#b8c8642c70f736ed91105645391d335fc51c8f62" From 652683fed4da476df0bb7d816137c3a84569b220 Mon Sep 17 00:00:00 2001 From: Jcanotorr06 Date: Tue, 20 Dec 2022 17:32:20 -0500 Subject: [PATCH 3/5] feat: create next-sitemap config file --- next-sitemap.config.cjs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 next-sitemap.config.cjs diff --git a/next-sitemap.config.cjs b/next-sitemap.config.cjs new file mode 100644 index 0000000..19ee9f5 --- /dev/null +++ b/next-sitemap.config.cjs @@ -0,0 +1,6 @@ +/** @type { import("next-sitemap").IConfig } */ + +module.exports = { + siteUrl: process.env.SITE_URL || "https://toolbox.josephcano.com", + generateRobotsTxt: true, +} \ No newline at end of file From 1fd8b90b1b8410d17f27699ba26819e03afba3a3 Mon Sep 17 00:00:00 2001 From: Jcanotorr06 Date: Tue, 20 Dec 2022 17:54:03 -0500 Subject: [PATCH 4/5] refactor: update tsconfig for next-sitemap config file --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 658068a..9b31f94 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,6 @@ "incremental": true, "noUncheckedIndexedAccess": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs", "next-sitemap.config.js"], "exclude": ["node_modules"] } From f5524eb28e4c936b1ce339924bf80b1419548a66 Mon Sep 17 00:00:00 2001 From: Jcanotorr06 Date: Tue, 20 Dec 2022 17:54:24 -0500 Subject: [PATCH 5/5] fix: correct postbuild command to point to next-sitemap.config.cjs --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d7e393..0ccfd55 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "private": false, "scripts": { "build": "next build", - "postbuild": "next-sitemap", + "postbuild": "next-sitemap --config next-sitemap.config.cjs", "dev": "next dev", "lint": "next lint", "start": "next start"