{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/105","repository_url":"https://api.github.com/repos/aws/aws-lambda-dotnet","labels_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/105/comments","events_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/105/events","html_url":"https://github.com/aws/aws-lambda-dotnet/issues/105","id":223585123,"number":105,"title":"Static page path","user":{"login":"genifycom","id":24735929,"avatar_url":"https://avatars3.githubusercontent.com/u/24735929?v=3","gravatar_id":"","url":"https://api.github.com/users/genifycom","html_url":"https://github.com/genifycom","followers_url":"https://api.github.com/users/genifycom/followers","following_url":"https://api.github.com/users/genifycom/following{/other_user}","gists_url":"https://api.github.com/users/genifycom/gists{/gist_id}","starred_url":"https://api.github.com/users/genifycom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genifycom/subscriptions","organizations_url":"https://api.github.com/users/genifycom/orgs","repos_url":"https://api.github.com/users/genifycom/repos","events_url":"https://api.github.com/users/genifycom/events{/privacy}","received_events_url":"https://api.github.com/users/genifycom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-22T18:56:19Z","updated_at":"2017-04-23T20:37:03Z","closed_at":null,"body":"Not sure if this is a Lambda or a Dotnet Core issue.\r\n\r\nIf you create an ASP.NET Core project with static pages. i.e. in your startup.cs Configure you have \"app.UseStaticFiles();\"\r\n\r\nI can serve up the static page using a string such as:\r\nhttps://xxxxxxxxxx.execute-api.loc.amazonaws.com/Prod/html/general.html\r\n\r\nbut, references within this resource such as:\r\n    <link rel=\"StyleSheet\" type=\"text/css\" href=\"css/style.css\" />\r\n\r\nare not found. They are attempted to be served up by:\r\nhttps://xxxxxxxxxx.execute-api.loc.amazonaws.com/css/style.css\r\n\r\nwhich of course fails (404).\r\n\r\nIn the end, I have to use:\r\n<link rel=\"StyleSheet\" type=\"text/css\" href=\"/Prod/css/style.css\" />\r\n\r\nwhich does not work in development (i.e. run locally).\r\n\r\nCan anyone shed some light on this behavior?\r\n\r\nThanks,\r\nDave\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/comments/296486849","html_url":"https://github.com/aws/aws-lambda-dotnet/issues/105#issuecomment-296486849","issue_url":"https://api.github.com/repos/aws/aws-lambda-dotnet/issues/105","id":296486849,"user":{"login":"genifycom","id":24735929,"avatar_url":"https://avatars3.githubusercontent.com/u/24735929?v=3","gravatar_id":"","url":"https://api.github.com/users/genifycom","html_url":"https://github.com/genifycom","followers_url":"https://api.github.com/users/genifycom/followers","following_url":"https://api.github.com/users/genifycom/following{/other_user}","gists_url":"https://api.github.com/users/genifycom/gists{/gist_id}","starred_url":"https://api.github.com/users/genifycom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genifycom/subscriptions","organizations_url":"https://api.github.com/users/genifycom/orgs","repos_url":"https://api.github.com/users/genifycom/repos","events_url":"https://api.github.com/users/genifycom/events{/privacy}","received_events_url":"https://api.github.com/users/genifycom/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T20:37:03Z","updated_at":"2017-04-23T20:37:03Z","body":"I have confirmed that\r\n\r\nwebRootPath = _hostingEnvironment.WebRootPath;\r\n\r\nreturns \"/var/task/wwwroot\" which will not work under Prod."}}
{"actor":{"display_login":"genifycom"}}