Fix node app docker

This commit is contained in:
koalasat
2025-02-13 11:15:56 +01:00
parent e30fa6ab98
commit 6795e2bdfd
2 changed files with 8 additions and 2 deletions

View File

@ -4,8 +4,11 @@ import SelfhostedAlert from './SelfhostedAlert';
import UnsafeAlert from './UnsafeAlert';
const HostAlert = (): JSX.Element => {
const { client } = useContext<UseAppStoreType>(AppContext);
const component = client === 'selfhosted' || client === 'desktop' ? SelfhostedAlert : UnsafeAlert;
const { client, hostUrl } = useContext<UseAppStoreType>(AppContext);
const component =
!hostUrl.includes('robosats') && (client === 'selfhosted' || client === 'desktop')
? SelfhostedAlert
: UnsafeAlert;
return component();
};

View File

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