This commit is contained in:
2021-01-12 13:19:00 +01:00
parent 0031f92c54
commit 68ee5253d2
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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