diff --git a/nuxt.config.js b/nuxt.config.js index 5b6d483071b431be10e328de62d16a9cce6e5734..dd727015c26e8f8f7f19e903d799c499c550cf69 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -16,6 +16,12 @@ export default { ] }, + env: { + // baseUrl: process.env.API_BASE_URL || 'localhost', + mode: process.env.MODE || 'production', + port: process.env.PORT || 3000 + }, + // Global CSS: https://go.nuxtjs.dev/config-css css: [ '@/assets/css/windi.css' @@ -61,7 +67,7 @@ export default { axios: { // baseURL: 'http://localhost:3001/' - proxy: true + proxy: process.env.MODE === 'development' }, proxy: {