{"id":13736374,"url":"https://github.com/manekinekko/angular-ssr-swa","last_synced_at":"2025-07-30T14:41:39.853Z","repository":{"id":38544866,"uuid":"265550436","full_name":"manekinekko/angular-ssr-swa","owner":"manekinekko","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T06:28:44.000Z","size":395,"stargazers_count":22,"open_issues_count":23,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:25:57.723Z","etag":null,"topics":["angular","azure","azure-static-web-apps","server-side-rendering","ssr","swa"],"latest_commit_sha":null,"homepage":"https://blue-bay-00cc1f303.azurestaticapps.net","language":"HTML","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/manekinekko.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-05-20T11:56:23.000Z","updated_at":"2023-01-11T08:41:19.000Z","dependencies_parsed_at":"2023-02-05T13:01:56.182Z","dependency_job_id":null,"html_url":"https://github.com/manekinekko/angular-ssr-swa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-ssr-swa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-ssr-swa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-ssr-swa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manekinekko%2Fangular-ssr-swa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manekinekko","download_url":"https://codeload.github.com/manekinekko/angular-ssr-swa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249141713,"owners_count":21219537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["angular","azure","azure-static-web-apps","server-side-rendering","ssr","swa"],"created_at":"2024-08-03T03:01:20.616Z","updated_at":"2025-04-15T19:43:58.793Z","avatar_url":"https://github.com/manekinekko.png","language":"HTML","funding_links":[],"categories":["Learning resources"],"sub_categories":["By technology"],"readme":"# Angular Server Side Rendering on Azure Static Web Apps\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.0-next.6.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n\n# Deploying to Azure Static Web Apps\n\nFollow the [Quickstart](https://bit.ly/2ABy9Cb) guide for Azure Static Web Apps and use the following configuration:\n\n![screenshot-1589980551002](https://user-images.githubusercontent.com/1699357/82451694-a3202000-9aae-11ea-813a-35db0092b9df.png)\n\n![screenshot-1589980574080](https://user-images.githubusercontent.com/1699357/82450911-95b66600-9aad-11ea-96d0-4576ff8ae07f.png)\n\n![screenshot-1589980828843](https://user-images.githubusercontent.com/1699357/82450907-94853900-9aad-11ea-9e52-ee0b9e21b5c1.png)\n\nBy default, Azure Static Web Apps will execute the `npm run build` script. We need to update the [generated workflow file](https://github.com/manekinekko/angular-ssr-swa/blob/master/.github/workflows/azure-static-web-apps-blue-bay-00cc1f303.yml#L30) and explicitely run the `npm run prerender` script:\n\n![angular-ssr-swa:azure-static-web-apps-blue-bay-00c](https://user-images.githubusercontent.com/1699357/82451219-f645a300-9aad-11ea-9e26-1db86ecc5aa3.png)\n\nAfter saving and commiting our changes, another build will trigger and we should get the prerendered app deployed at the given URL for your app:\n\n![screenshot-1589979864867](https://user-images.githubusercontent.com/1699357/82449287-496a2680-9aab-11ea-8c30-a7aa1db82deb.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanekinekko%2Fangular-ssr-swa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanekinekko%2Fangular-ssr-swa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanekinekko%2Fangular-ssr-swa/lists"}