Skip to content

Commit cf1bd26

Browse files
committed
Add sitemap
1 parent 2f3ba29 commit cf1bd26

3 files changed

Lines changed: 72 additions & 4 deletions

File tree

web/nuxt.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default {
6161
},
6262
},
6363
],
64+
'@nuxtjs/sitemap', // always put it at the end
6465
],
6566

6667
// Axios module configuration: https://go.nuxtjs.dev/config-axios
@@ -85,6 +86,12 @@ export default {
8586
middleware: ['user'],
8687
},
8788

89+
sitemap: {
90+
hostname: 'https://httpsms.com',
91+
gzip: true,
92+
exclude: ['/messages', '/settings', '/threads**'],
93+
},
94+
8895
// Build Configuration: https://go.nuxtjs.dev/config-build
8996
build: {},
9097
}

web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@nuxtjs/axios": "^5.13.6",
2525
"@nuxtjs/dotenv": "^1.4.1",
2626
"@nuxtjs/firebase": "^8.2.2",
27+
"@nuxtjs/sitemap": "^2.4.0",
2728
"core-js": "^3.19.3",
2829
"dotenv": "^16.0.1",
2930
"firebase": "^9.8.4",

web/yarn.lock

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,6 +2062,21 @@
20622062
dependencies:
20632063
http-proxy-middleware "^1.0.6"
20642064

2065+
"@nuxtjs/sitemap@^2.4.0":
2066+
version "2.4.0"
2067+
resolved "https://registry.yarnpkg.com/@nuxtjs/sitemap/-/sitemap-2.4.0.tgz#6a9fa1c35e161f87375d59949d973568cec40614"
2068+
integrity sha512-TVgIYOtPp7KAfaUo76WRpGbO20j4D/xi/A7shFIGjARHs+FvfAWXNCtBT87dTwe/RoYzAsEKtijFFUTaSu5bUA==
2069+
dependencies:
2070+
async-cache "^1.1.0"
2071+
consola "^2.13.0"
2072+
etag "^1.8.1"
2073+
fresh "^0.5.2"
2074+
fs-extra "^8.1.0"
2075+
is-https "^2.0.2"
2076+
lodash.unionby "^4.8.0"
2077+
minimatch "^3.0.4"
2078+
sitemap "^4.1.1"
2079+
20652080
"@nuxtjs/stylelint-module@^4.1.0":
20662081
version "4.1.0"
20672082
resolved "https://registry.npmjs.org/@nuxtjs/stylelint-module/-/stylelint-module-4.1.0.tgz"
@@ -2376,6 +2391,11 @@
23762391
version "18.0.0"
23772392
resolved "https://registry.npmjs.org/@types/node/-/node-18.0.0.tgz"
23782393

2394+
"@types/node@^12.0.2":
2395+
version "12.20.55"
2396+
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
2397+
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
2398+
23792399
"@types/normalize-package-data@^2.4.0":
23802400
version "2.4.1"
23812401
resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz"
@@ -2428,6 +2448,13 @@
24282448
dependencies:
24292449
"@types/node" "*"
24302450

2451+
"@types/sax@^1.2.0":
2452+
version "1.2.4"
2453+
resolved "https://registry.yarnpkg.com/@types/sax/-/sax-1.2.4.tgz#8221affa7f4f3cb21abd22f244cfabfa63e6a69e"
2454+
integrity sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==
2455+
dependencies:
2456+
"@types/node" "*"
2457+
24312458
"@types/serve-static@*":
24322459
version "1.13.10"
24332460
resolved "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.10.tgz"
@@ -3014,7 +3041,7 @@ aproba@^1.1.1:
30143041
version "1.2.0"
30153042
resolved "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz"
30163043

3017-
arg@^4.1.0:
3044+
arg@^4.1.0, arg@^4.1.1:
30183045
version "4.1.3"
30193046
resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz"
30203047

@@ -3117,6 +3144,13 @@ astral-regex@^2.0.0:
31173144
version "2.0.0"
31183145
resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz"
31193146

3147+
async-cache@^1.1.0:
3148+
version "1.1.0"
3149+
resolved "https://registry.yarnpkg.com/async-cache/-/async-cache-1.1.0.tgz#4a9a5a89d065ec5d8e5254bd9ee96ba76c532b5a"
3150+
integrity sha512-YDQc4vBn5NFhY6g6HhVshyi3Fy9+SQ5ePnE7JLDJn1DoL+i7ER+vMwtTNOYk9leZkYMnOwpBCWqyLDPw8Aig8g==
3151+
dependencies:
3152+
lru-cache "^4.0.0"
3153+
31203154
async-each@^1.0.1:
31213155
version "1.0.3"
31223156
resolved "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz"
@@ -4046,7 +4080,7 @@ connect@^3.7.0:
40464080
parseurl "~1.3.3"
40474081
utils-merge "1.0.1"
40484082

4049-
consola@^2.10.0, consola@^2.10.1, consola@^2.15.0, consola@^2.15.3, consola@^2.6.0, consola@^2.9.0:
4083+
consola@^2.10.0, consola@^2.10.1, consola@^2.13.0, consola@^2.15.0, consola@^2.15.3, consola@^2.6.0, consola@^2.9.0:
40504084
version "2.15.3"
40514085
resolved "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz"
40524086

@@ -6505,6 +6539,11 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
65056539
dependencies:
65066540
is-extglob "^2.1.1"
65076541

6542+
is-https@^2.0.2:
6543+
version "2.0.2"
6544+
resolved "https://registry.yarnpkg.com/is-https/-/is-https-2.0.2.tgz#7009d303c72580f15897d5c063d6b6bc1f838fef"
6545+
integrity sha512-UfUCKVQH/6PQRCh5Qk9vNu4feLZiFmV/gr8DjbtJD0IrCRIDTA6E+d/AVFGPulI5tqK5W45fYbn1Nir1O99rFw==
6546+
65086547
is-negative-zero@^2.0.2:
65096548
version "2.0.2"
65106549
resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz"
@@ -7535,6 +7574,11 @@ lodash.truncate@^4.4.2:
75357574
version "4.4.2"
75367575
resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz"
75377576

7577+
lodash.unionby@^4.8.0:
7578+
version "4.8.0"
7579+
resolved "https://registry.yarnpkg.com/lodash.unionby/-/lodash.unionby-4.8.0.tgz#883f098ff78f564a727b7508e09cdd539734bb83"
7580+
integrity sha512-e60kn4GJIunNkw6v9MxRnUuLYI/Tyuanch7ozoCtk/1irJTYBj+qNTxr5B3qVflmJhwStJBv387Cb+9VOfABMg==
7581+
75387582
lodash.uniq@^4.5.0:
75397583
version "4.5.0"
75407584
resolved "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz"
@@ -7572,7 +7616,7 @@ lower-case@^2.0.2:
75727616
dependencies:
75737617
tslib "^2.0.3"
75747618

7575-
lru-cache@^4.1.2, lru-cache@^4.1.5:
7619+
lru-cache@^4.0.0, lru-cache@^4.1.2, lru-cache@^4.1.5:
75767620
version "4.1.5"
75777621
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz"
75787622
dependencies:
@@ -9776,7 +9820,7 @@ sass@~1.32.13:
97769820
dependencies:
97779821
chokidar ">=3.0.0 <4.0.0"
97789822

9779-
sax@~1.2.4:
9823+
sax@^1.2.4, sax@~1.2.4:
97809824
version "1.2.4"
97819825
resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz"
97829826

@@ -9981,6 +10025,17 @@ sisteransi@^1.0.5:
998110025
version "1.0.5"
998210026
resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz"
998310027

10028+
sitemap@^4.1.1:
10029+
version "4.1.1"
10030+
resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-4.1.1.tgz#c9b459c7d797e629c61f56b86586d4f67dbf250b"
10031+
integrity sha512-+8yd66IxyIFEMFkFpVoPuoPwBvdiL7Ap/HS5YD7igqO4phkyTPFIprCAE9NMHehAY5ZGN3MkAze4lDrOAX3sVQ==
10032+
dependencies:
10033+
"@types/node" "^12.0.2"
10034+
"@types/sax" "^1.2.0"
10035+
arg "^4.1.1"
10036+
sax "^1.2.4"
10037+
xmlbuilder "^13.0.0"
10038+
998410039
slash@^3.0.0:
998510040
version "3.0.0"
998610041
resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz"
@@ -11513,6 +11568,11 @@ xml-name-validator@^3.0.0:
1151311568
version "3.0.0"
1151411569
resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz"
1151511570

11571+
xmlbuilder@^13.0.0:
11572+
version "13.0.2"
11573+
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-13.0.2.tgz#02ae33614b6a047d1c32b5389c1fdacb2bce47a7"
11574+
integrity sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ==
11575+
1151611576
xmlchars@^2.2.0:
1151711577
version "2.2.0"
1151811578
resolved "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz"

0 commit comments

Comments
 (0)