add node v18 support, fix #278

This commit is contained in:
lesion 2023-06-17 09:27:31 +02:00
parent 64ba4b5488
commit dff5a798e5
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 6 additions and 3 deletions

View file

@ -2,6 +2,9 @@ const config = require('./server/config.js')
const locales = require('./locales/index')
import { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } from 'vuetify/es5/locale'
const dns = require('node:dns')
dns.setDefaultResultOrder('ipv4first')
const isDev = (process.env.NODE_ENV !== 'production')
module.exports = {
telemetry: false,
@ -95,7 +98,7 @@ module.exports = {
vueI18n: {
fallbackLocale: 'en',
silentTranslationWarn: true
},
},
langDir: 'locales',
lazy: true,
strategy: 'no_prefix',
@ -142,7 +145,7 @@ module.exports = {
buildModules: ['@nuxtjs/vuetify'],
vuetify: {
lang: { locales: { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } },
treeShake: true,
treeShake: true,
defaultAssets: false,
optionsPath: './vuetify.options.js' },
build: {

View file

@ -33,7 +33,7 @@
"yarn.lock"
],
"engines": {
"node": ">=14 <=16"
"node": ">=14 <=18"
},
"dependencies": {
"@mdi/js": "^7.1.96",