From 6795e2bdfd26ddce7e238b110c0d4b7d3fc248b9 Mon Sep 17 00:00:00 2001 From: koalasat Date: Thu, 13 Feb 2025 11:15:56 +0100 Subject: [PATCH] Fix node app docker --- frontend/src/components/HostAlert/index.tsx | 7 +++++-- nodeapp/docker-compose.yml | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/HostAlert/index.tsx b/frontend/src/components/HostAlert/index.tsx index 2af92b74..7dee8f94 100644 --- a/frontend/src/components/HostAlert/index.tsx +++ b/frontend/src/components/HostAlert/index.tsx @@ -4,8 +4,11 @@ import SelfhostedAlert from './SelfhostedAlert'; import UnsafeAlert from './UnsafeAlert'; const HostAlert = (): JSX.Element => { - const { client } = useContext(AppContext); - const component = client === 'selfhosted' || client === 'desktop' ? SelfhostedAlert : UnsafeAlert; + const { client, hostUrl } = useContext(AppContext); + const component = + !hostUrl.includes('robosats') && (client === 'selfhosted' || client === 'desktop') + ? SelfhostedAlert + : UnsafeAlert; return component(); }; diff --git a/nodeapp/docker-compose.yml b/nodeapp/docker-compose.yml index 395c9775..1fb024fa 100644 --- a/nodeapp/docker-compose.yml +++ b/nodeapp/docker-compose.yml @@ -7,6 +7,9 @@ services: container_name: nodeapp-dev-frontend restart: always command: npm run dev + volumes: + - ../frontend:/usr/src/frontend + - ./:/usr/src/nodeapp nginx: build: .