From 08173c8ea7af46c923a12b05c34e58bfed8b62f0 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Fri, 10 Jun 2022 11:41:31 +1000 Subject: [PATCH] chore(#427): update nuxt config --- nuxt.config.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 152b7dcd..bdd92e06 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -58,8 +58,6 @@ export default { index: 'default', }, ], - // DruxtJS Site. - 'druxt-site', ], publicRuntimeConfig: { @@ -68,6 +66,9 @@ export default { // Modules (https://go.nuxtjs.dev/config-modules) modules: [ + // DruxtJS Site. + 'druxt-site', + // Nuxt.js Lunr. [ '@nuxtjs/lunr-module', @@ -132,6 +133,7 @@ export default { // Druxt Configuration druxt: { baseUrl, + // endpoint: '/jsonapi', // Druxt Blocks module settings. blocks: { @@ -155,8 +157,8 @@ export default { // Druxt proxy settings. proxy: { - // Enable API proxy based on environment variable. - api: process.env.API_PROXY === '1', + // JSON:API Proxy (can not be used in Static builds). + // api: true }, // Druxt Router module settings.