From 68ee5253d265311585870bf9c366d90b7367bb5d Mon Sep 17 00:00:00 2001 From: feeling Date: Tue, 12 Jan 2021 13:19:00 +0100 Subject: [PATCH] a --- interface/.env.development | 4 ++-- platformio.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/.env.development b/interface/.env.development index b12cfd0..f0d14f9 100644 --- a/interface/.env.development +++ b/interface/.env.development @@ -1,4 +1,4 @@ # Change the IP address to that of your ESP device to enable local development of the UI. # Remember to also enable CORS in platformio.ini before uploading the code to the device. -REACT_APP_HTTP_ROOT=http://192.168.0.88 -REACT_APP_WEB_SOCKET_ROOT=ws://192.168.0.88 +REACT_APP_HTTP_ROOT=http://192.168.30.150 +REACT_APP_WEB_SOCKET_ROOT=ws://192.168.30.150 diff --git a/platformio.ini b/platformio.ini index 174353c..d11e760 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,7 +11,7 @@ build_flags= ${features.build_flags} -D NO_GLOBAL_ARDUINOOTA ; Uncomment ENABLE_CORS to enable Cross-Origin Resource Sharing (required for local React development) - ;-D ENABLE_CORS + -D ENABLE_CORS -D CORS_ORIGIN=\"http://localhost:3000\" ; Uncomment PROGMEM_WWW to enable the storage of the WWW data in PROGMEM -D PROGMEM_WWW