Commit web interface build and serve statically

This commit is contained in:
2021-04-26 03:07:06 +00:00
parent 33145cb3f2
commit 76cdf90b44
13 changed files with 80 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
axios.defaults.baseURL = 'http://minecraft-bot.dns.t0.vc';
axios.defaults.baseURL = process.env.REACT_APP_SERVER;
function App() {
const [global, setGlobal] = useState(false);