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 diff --git a/package.json b/package.json index f58edce..0ccfd55 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "private": false, "scripts": { "build": "next build", + "postbuild": "next-sitemap --config next-sitemap.config.cjs", "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/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": "/", 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"] } 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"