From a1943b3e28516ed89d6f16daf8f4c6b7676393f3 Mon Sep 17 00:00:00 2001 From: frami Date: Tue, 5 Sep 2023 15:36:02 -0300 Subject: [PATCH 1/3] fix: local proxy on node >=18 --- gatsby-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index c5b0f18d9..cebcf0738 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,5 +1,5 @@ /* eslint-disable */ -const { default: developMiddleware } = require('decentraland-gatsby/dist/utils/development/developMiddleware') +// const { default: developMiddleware } = require('decentraland-gatsby/dist/utils/development/developMiddleware' require('dotenv').config({ path: `.env.${process.env.NODE_ENV}`, @@ -17,7 +17,7 @@ module.exports = { }, developMiddleware: developMiddleware({ prefix: `/api`, - url: `http://localhost:4000`, + url: `http://127.0.0.1:4000`, }), plugins: [ `gatsby-plugin-react-helmet`, From 84dbd07642be8b8deb8491e0351d48f1131745a6 Mon Sep 17 00:00:00 2001 From: frami Date: Thu, 7 Sep 2023 16:28:38 -0300 Subject: [PATCH 2/3] fix: dev import --- gatsby-config.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index cebcf0738..510c0121d 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,5 +1,5 @@ /* eslint-disable */ -// const { default: developMiddleware } = require('decentraland-gatsby/dist/utils/development/developMiddleware' +const { default: developMiddleware } = require('decentraland-gatsby/dist/utils/development/developMiddleware' require('dotenv').config({ path: `.env.${process.env.NODE_ENV}`, diff --git a/package.json b/package.json index d6574e01a..67a21d333 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "0.0.0-development", "description": "", "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node": ">=18.0.0", + "npm": ">=8.0.0" }, "scripts": { "test": "jest --no-cache --runInBand", From 01cc1804f5a6afc96c248faa35c64b1407735878 Mon Sep 17 00:00:00 2001 From: frami Date: Mon, 18 Sep 2023 14:49:51 -0600 Subject: [PATCH 3/3] Update gatsby-config.js Signed-off-by: frami --- gatsby-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index 510c0121d..62d660fe1 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,5 +1,5 @@ /* eslint-disable */ -const { default: developMiddleware } = require('decentraland-gatsby/dist/utils/development/developMiddleware' +const { default: developMiddleware } = require('decentraland-gatsby/dist/utils/development/developMiddleware') require('dotenv').config({ path: `.env.${process.env.NODE_ENV}`,