mirror of
https://github.com/ellmau/adf-obdd.git
synced 2025-12-20 09:39:38 +01:00
Make fetch endpoint depend on environment
This commit is contained in:
parent
dbde6b86f4
commit
86122357a6
@ -44,7 +44,7 @@ function App() {
|
||||
() => {
|
||||
setLoading(true);
|
||||
|
||||
fetch('http://localhost:8080/solve', {
|
||||
fetch(`${process.env.NODE_ENV === 'development' ? '//localhost:8080' : ''}/solve`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@ -75,9 +75,8 @@ function App() {
|
||||
label="Put your code here:"
|
||||
helperText={(
|
||||
<>
|
||||
For more info on the syntax, have a look
|
||||
<Link href="https://github.com/ellmau/adf-obdd" target="_blank" rel="noreferrer">here</Link>
|
||||
.
|
||||
For more info on the syntax, have a
|
||||
look <Link href="https://github.com/ellmau/adf-obdd" target="_blank" rel="noreferrer">here</Link>.
|
||||
</>
|
||||
)}
|
||||
multiline
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user