Skip to content

Commit 6de7097

Browse files
committed
fix(update): added nuxtjs/seo; renaming files for auto import
1 parent 5de61a1 commit 6de7097

22 files changed

+2019
-2493
lines changed

gp-vue-boilerplate.code-workspace

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"folders": [
33
{
44
"path": "."
5-
},
6-
{
7-
"path": "./node_modules/nuxt-booster"
85
}
96
],
107
"settings": {

nuxt.config.js

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ export default defineNuxtConfig(() => {
1414

1515
css: ['@/assets/css/vars.css'],
1616

17+
site: {
18+
indexable: false,
19+
trailingSlash: true,
20+
url: getWebsiteHost()
21+
},
22+
1723
app: {
1824
baseURL: getBaseUrl(),
1925
head: {
@@ -249,35 +255,17 @@ export default defineNuxtConfig(() => {
249255
}
250256
},
251257

252-
modules: ['@nuxt/eslint', '@pinia/nuxt', 'nuxt-booster', '@nuxt/content'],
258+
modules: [
259+
'@nuxt/eslint',
260+
'@nuxtjs/seo',
261+
'@nuxt/content',
262+
'@pinia/nuxt',
263+
'nuxt-booster'
264+
],
253265

254266
buildModules: [
255267
'@nuxtjs/dotenv',
256-
...(isDev ? ['@nuxtjs/eslint-module', '@nuxtjs/stylelint-module'] : []),
257-
[
258-
'@nuxtjs/sitemap',
259-
{
260-
path: 'sitemap.xml',
261-
hostname: getWebsiteHost(),
262-
cacheTime: 1000 * 60 * 15,
263-
gzip: false,
264-
exclude: [],
265-
defaults: {
266-
changefreq: 'daily',
267-
priority: 1,
268-
lastmod: new Date(),
269-
lastmodrealtime: true
270-
}
271-
}
272-
],
273-
[
274-
'@nuxtjs/robots',
275-
{
276-
UserAgent: '*',
277-
Disallow: '',
278-
Sitemap: path.join(getWebsiteHost(), getBaseUrl(), 'sitemap.xml')
279-
}
280-
]
268+
...(isDev ? ['@nuxtjs/eslint-module', '@nuxtjs/stylelint-module'] : [])
281269
]
282270
};
283271
});

0 commit comments

Comments
 (0)