mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-23 05:39: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';
|
import UnsafeAlert from './UnsafeAlert';
|
||||||
|
|
||||||
const HostAlert = (): JSX.Element => {
|
const HostAlert = (): JSX.Element => {
|
||||||
const { client } = useContext<UseAppStoreType>(AppContext);
|
const { client, hostUrl } = useContext<UseAppStoreType>(AppContext);
|
||||||
const component = client === 'selfhosted' || client === 'desktop' ? SelfhostedAlert : UnsafeAlert;
|
const component =
|
||||||
|
!hostUrl.includes('robosats') && (client === 'selfhosted' || client === 'desktop')
|
||||||
|
? SelfhostedAlert
|
||||||
|
: UnsafeAlert;
|
||||||
return component();
|
return component();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@ services:
|
|||||||
container_name: nodeapp-dev-frontend
|
container_name: nodeapp-dev-frontend
|
||||||
restart: always
|
restart: always
|
||||||
command: npm run dev
|
command: npm run dev
|
||||||
|
volumes:
|
||||||
|
- ../frontend:/usr/src/frontend
|
||||||
|
- ./:/usr/src/nodeapp
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build: .
|
build: .
|
||||||
|
Loading…
Reference in New Issue
Block a user