mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 10:19:43 +03:00
♻️ fixed proxy api uri
This commit is contained in:
parent
ece8e35f87
commit
86b8e11fb1
@ -11,6 +11,6 @@ module.exports = withSass({
|
||||
return config
|
||||
},
|
||||
env: {
|
||||
GRAPHQL_API_URI: 'http://localhost/api/graphql'
|
||||
GRAPHQL_API_URI: 'http://localhost:3000/api/graphql'
|
||||
}
|
||||
})
|
||||
|
||||
@ -1,11 +1,7 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
# location / {
|
||||
# proxy_pass http://apollo-next-graphql:3000;
|
||||
# }
|
||||
|
||||
|
||||
location / {
|
||||
proxy_pass http://apollo-next-graphql:3000;
|
||||
proxy_http_version 1.1;
|
||||
@ -13,7 +9,7 @@ server {
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user