prepare production dockerfiles and env

This commit is contained in:
2024-12-02 01:24:46 +02:00
parent b3b8637f0e
commit 62b975ab72
9 changed files with 97 additions and 22 deletions

View File

@@ -178,7 +178,7 @@ class VisQuiz extends Component {
on_survey_click() {
fetch('http://localhost:8000/record_responses_to_db', {
fetch(`${process.env.REACT_APP_API_URL}//record_responses_to_db`, {
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' },
method: 'POST',
body: JSON.stringify({