Skip to content

Commit

Permalink
Merge pull request #1476 from GrabarzUndPartner/feature/update
Browse files Browse the repository at this point in the history
fix(update): added `nuxtjs/seo`; renaming files for auto import
  • Loading branch information
ThornWalli authored Jul 2, 2024
2 parents 5de61a1 + 9cd86fd commit 5640dcd
Show file tree
Hide file tree
Showing 25 changed files with 2,027 additions and 2,496 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Expand Down
1 change: 0 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Expand Down
3 changes: 0 additions & 3 deletions gp-vue-boilerplate.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"folders": [
{
"path": "."
},
{
"path": "./node_modules/nuxt-booster"
}
],
"settings": {
Expand Down
40 changes: 14 additions & 26 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export default defineNuxtConfig(() => {

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

site: {
indexable: false,
trailingSlash: true,
url: getWebsiteHost()
},

app: {
baseURL: getBaseUrl(),
head: {
Expand Down Expand Up @@ -249,35 +255,17 @@ export default defineNuxtConfig(() => {
}
},

modules: ['@nuxt/eslint', '@pinia/nuxt', 'nuxt-booster', '@nuxt/content'],
modules: [
'@nuxt/eslint',
'@nuxtjs/seo',
'@nuxt/content',
'@pinia/nuxt',
'nuxt-booster'
],

buildModules: [
'@nuxtjs/dotenv',
...(isDev ? ['@nuxtjs/eslint-module', '@nuxtjs/stylelint-module'] : []),
[
'@nuxtjs/sitemap',
{
path: 'sitemap.xml',
hostname: getWebsiteHost(),
cacheTime: 1000 * 60 * 15,
gzip: false,
exclude: [],
defaults: {
changefreq: 'daily',
priority: 1,
lastmod: new Date(),
lastmodrealtime: true
}
}
],
[
'@nuxtjs/robots',
{
UserAgent: '*',
Disallow: '',
Sitemap: path.join(getWebsiteHost(), getBaseUrl(), 'sitemap.xml')
}
]
...(isDev ? ['@nuxtjs/eslint-module', '@nuxtjs/stylelint-module'] : [])
]
};
});
Expand Down
Loading

0 comments on commit 5640dcd

Please sign in to comment.