{"action":"opened","issue":{"url":"https://api.github.com/repos/hapijs/discuss/issues/623","repository_url":"https://api.github.com/repos/hapijs/discuss","labels_url":"https://api.github.com/repos/hapijs/discuss/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/discuss/issues/623/comments","events_url":"https://api.github.com/repos/hapijs/discuss/issues/623/events","html_url":"https://github.com/hapijs/discuss/issues/623","id":294869025,"number":623,"title":"Serving the static .js.gz js file in Hapijs","user":{"login":"R2D2-fwks","id":14193702,"avatar_url":"https://avatars1.githubusercontent.com/u/14193702?v=4","gravatar_id":"","url":"https://api.github.com/users/R2D2-fwks","html_url":"https://github.com/R2D2-fwks","followers_url":"https://api.github.com/users/R2D2-fwks/followers","following_url":"https://api.github.com/users/R2D2-fwks/following{/other_user}","gists_url":"https://api.github.com/users/R2D2-fwks/gists{/gist_id}","starred_url":"https://api.github.com/users/R2D2-fwks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R2D2-fwks/subscriptions","organizations_url":"https://api.github.com/users/R2D2-fwks/orgs","repos_url":"https://api.github.com/users/R2D2-fwks/repos","events_url":"https://api.github.com/users/R2D2-fwks/events{/privacy}","received_events_url":"https://api.github.com/users/R2D2-fwks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-06T18:40:48Z","updated_at":"2018-02-06T18:40:48Z","closed_at":null,"author_association":"NONE","body":"I am using the inert module with hapi , with directory handler .\r\nHere is my code for serving the .gz file , but still i am not able to render it .Can you please provide me some assistance .\r\n\r\n\r\n       `server.route({\r\n            \"path\":\"/{filename*}\",\r\n            \"method\":\"GET\",\r\n            \"config\":{\r\n              \"auth\":false\r\n            },\r\n            \"handler\":{\r\n              directory:{\r\n                path:__dirname +'/dist',\r\n                listing:false,\r\n                index:true,\r\n                lookupCompressed: true,\r\n                \"lookupMap\":{\r\n                  \"gzip\":\".gz\"\r\n                }\r\n              }\r\n            },\r\n            config: {\r\n              app: {\r\n                 customHeaders: {\r\n                   'Content-Encoding': 'gzip'\r\n                 }\r\n               }\r\n          \t}\r\n          });\r\n      });`"}}
{"actor":{"display_login":"R2D2-fwks"}}