diff --git a/next.config.js b/next.config.js index 9df7241..5a3fc12 100644 --- a/next.config.js +++ b/next.config.js @@ -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' } }) diff --git a/nginx/default.conf b/nginx/default.conf index e4898a3..ac232c1 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -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 {