Skip to content

Commit 7d1a521

Browse files
committed
build: upgrade nuxt to 2.15; migrate to runtime config
1 parent 7e18b36 commit 7d1a521

7 files changed

+3363
-3291
lines changed

.babelrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"env": {
3+
"test": {
4+
"presets": [
5+
[
6+
"@babel/preset-env",
7+
{
8+
"targets": {
9+
"node": "current"
10+
}
11+
}
12+
]
13+
]
14+
}
15+
}
16+
}
17+

.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = {
1414
extends: [
1515
'plugin:vue/recommended',
1616
'eslint:recommended',
17-
'prettier/vue',
1817
'plugin:prettier/recommended',
1918
],
2019
rules: {

babel.config.js

-12
This file was deleted.

nuxt.config.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require('dotenv').config()
2-
31
export default {
42
ssr: true,
53
server: {
@@ -55,6 +53,16 @@ export default {
5553
],
5654
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
5755
},
56+
/**
57+
* Public runtime configs
58+
*/
59+
publicRuntimeConfig: {
60+
appName: process.env.APP_NAME,
61+
},
62+
/**
63+
* Private runtime configs
64+
*/
65+
privateRuntimeConfig: {},
5866
/*
5967
** Customize the progress-bar color
6068
*/
@@ -66,7 +74,7 @@ export default {
6674
/*
6775
** Plugins to load before mounting the App
6876
*/
69-
plugins: [{ src: '~/plugins/repository', mode: 'client' }],
77+
plugins: [{ src: '~/plugins/repository', ssr: false }],
7078
/*
7179
** Nuxt.js dev-modules
7280
*/
@@ -84,8 +92,6 @@ export default {
8492
// Doc: https://axios.nuxtjs.org/usage
8593
'@nuxtjs/axios',
8694
'@nuxtjs/pwa',
87-
// Doc: https://github.com/nuxt-community/dotenv-module
88-
'@nuxtjs/dotenv',
8995
],
9096
/*
9197
** Axios module configuration

0 commit comments

Comments
 (0)