<TextField
id="outlined-name"
label="Name"
name="name"
className={classes.textField}
value={name}
onChange={handleChange}
margin="normal"
variant="outlined"
/>
handleChange = ({ target }) => {
this.setState({ [target.name]: target.value });
};
server {
listen 80;
server_name api.example.com;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:3000;
}
}
server {
listen *:80;
server_name example.сщь;
root /path/to/vue/build;
index index.html index.htm;
location / {}
}
app.use(express.static('public'));