Skip to content

Commit c15f8e4

Browse files
author
atimonin
committed
MLINE Remove envs
1 parent 314ac88 commit c15f8e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

code/front/web-app/src/Constants.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const REACT_APP_API_URL = 'localhost.ru'
2+
const REACT_APP_PORT = '3030'

code/front/web-app/src/Screens/MfosModule/MfosScreen.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import {useTranslation, Trans} from 'react-i18next'
66
import FilterButton from "../../Components/FilterButton/FilterButton";
77
import Editor, { DiffEditor, useMonaco, loader } from '@monaco-editor/react';
88
import { SpecificationService } from './SpecificationService';
9+
import { REACT_APP_API_URL, REACT_APP_PORT } from "../../Constants"
910

1011
const UserScreen = () => {
1112
const { id } = useParams();
1213
const editorRef = useRef(null);
1314
const {t, i18n} = useTranslation();
1415
const [specification, setSpecification] = useState("");
15-
const url = process.env.REACT_APP_API_URL + ":" + process.env.REACT_APP_PORT
16+
const url = REACT_APP_API_URL + ":" + REACT_APP_PORT
1617
const specificationService = new SpecificationService(url);
1718
const [validationResult, setValidationResult] = useState(null);
1819

0 commit comments

Comments
 (0)