mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 13:19:02 +00:00
Merge pull request #1730 from RoboSats/fix-nodeapp-dkcer
Fix node app docker
This commit is contained in:
commit
11d1537fc6
@ -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();
|
||||
};
|
||||
|
||||
|
@ -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: .
|
||||
|
Loading…
Reference in New Issue
Block a user