Merge pull request #1730 from RoboSats/fix-nodeapp-dkcer

Fix node app docker
This commit is contained in:
KoalaSat 2025-02-13 10:16:41 +00:00 committed by GitHub
commit 11d1537fc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: .