{"id":17114365,"url":"https://github.com/anthonychu/functions-customhandlers-aspnetcore","last_synced_at":"2026-01-19T07:32:36.982Z","repository":{"id":39156486,"uuid":"255677450","full_name":"anthonychu/functions-customhandlers-aspnetcore","owner":"anthonychu","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T14:56:19.000Z","size":4008,"stargazers_count":2,"open_issues_count":25,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T02:31:10.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonychu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-14T17:26:57.000Z","updated_at":"2024-03-06T06:10:28.000Z","dependencies_parsed_at":"2022-09-07T13:14:24.855Z","dependency_job_id":null,"html_url":"https://github.com/anthonychu/functions-customhandlers-aspnetcore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthonychu/functions-customhandlers-aspnetcore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Ffunctions-customhandlers-aspnetcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Ffunctions-customhandlers-aspnetcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Ffunctions-customhandlers-aspnetcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Ffunctions-customhandlers-aspnetcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonychu","download_url":"https://codeload.github.com/anthonychu/functions-customhandlers-aspnetcore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonychu%2Ffunctions-customhandlers-aspnetcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T17:16:50.463Z","updated_at":"2026-01-19T07:32:36.966Z","avatar_url":"https://github.com/anthonychu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASP.NET Core in Azure Functions Custom Handlers\n\n\u003e Important: This is a quick proof of concept and how this works is subject to change until [custom handlers](https://docs.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers) reaches general availability.\n\n## dotnet-react (.NET Core + React app)\n\nThis is an ASP.NET Core app built with `dotnet new react`. There were 3 main changes:\n\n* `Program.cs`\n    - Listen to `FUNCTIONS_HTTPWORKER_PORT`.\n    - Change current working directory to `server` as the app will run from a subfolder within a function app. This is configured using an app setting named `ServerSubfolder`.\n* `Startup.cs`\n    - Add middleware to rewrite the request path using the `__path__` query string.\n\n### Build and publish the app\n\nPublish the app into a folder named `server` in the function app.\n\n```bash\ncd dotnet-react\ndotnet publish -c Release -o ../function-app/server\n```\n\n## function-app (main Azure Functions app)\n\nThis is the main function app. `host.json` has been configured to start `dotnet server/dotnet-react.dll` as the custom hander.\n\nA proxy is configured in `proxies.json` to forward all requests to `/api/index?__path__={path}` in the function app. This is currently needed as the original path required for routing in ASP.NET Core is lost when the custom handler is invoked.\n\nThere's an `index` function that invokes the custom handler.\n\n### Run locally\n\n```bash\nfunc start\n```\n\n### Publish to Azure\n\nCreate a function app in the Windows consumption plan, then publish with this command:\n\n```bash\nfunc azure functionapp publish $FUNCTION_APP_NAME --no-build -b local --force\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonychu%2Ffunctions-customhandlers-aspnetcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonychu%2Ffunctions-customhandlers-aspnetcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonychu%2Ffunctions-customhandlers-aspnetcore/lists"}