{"id":28264517,"url":"https://github.com/fdmediagroep/test-mfe","last_synced_at":"2026-04-13T18:02:24.415Z","repository":{"id":156382142,"uuid":"632982068","full_name":"FDMediagroep/test-mfe","owner":"FDMediagroep","description":"Testing FD Micro-frontends","archived":false,"fork":false,"pushed_at":"2023-04-26T14:54:32.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-18T08:48:39.135Z","etag":null,"topics":["mfe","micro-frontend","nextjs","vercel"],"latest_commit_sha":null,"homepage":"https://test-mfe-fdmediagroep.vercel.app","language":"TypeScript","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/FDMediagroep.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-26T14:24:15.000Z","updated_at":"2023-04-26T14:43:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1561f4c-1ddd-4fc6-b83d-c469be117224","html_url":"https://github.com/FDMediagroep/test-mfe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FDMediagroep/test-mfe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ftest-mfe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ftest-mfe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ftest-mfe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ftest-mfe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FDMediagroep","download_url":"https://codeload.github.com/FDMediagroep/test-mfe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDMediagroep%2Ftest-mfe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["mfe","micro-frontend","nextjs","vercel"],"created_at":"2025-05-20T09:10:48.704Z","updated_at":"2026-04-13T18:02:24.410Z","avatar_url":"https://github.com/FDMediagroep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FD Micro-frontend test\n\nTesting FD Micro-frontends\n\n## Prerequisites\n\nThe micro frontends themselves don't include fonts. The page which include the micro-frontends need to make the fonts available.\n\n## Running this application\n\n### Getting started\n\nAfter cloning this repository.\n\n1. Make sure you've installed `node` and `npm`. [nodejs.org](https://nodejs.org/)\n1. Run `npm i` in the application folder root to install dependencies required by this application\n1. Run `npm run dev` to start the local development server. Use the information in the terminal to open the page in a webbrowser.\n\n## Micro-frontend includes\n\nThe MFE includes happen in `pages/index.tsx`:\n\n```\nexport const getStaticProps: GetStaticProps = async () =\u003e {\n  const footerPromise = fetch(\"https://fd.nl/mfe/footer\").then((res) =\u003e\n    res.text()\n  );\n  const menuPromise = fetch(\"https://fd.nl/mfe/menu\").then((res) =\u003e res.text());\n\n  const [footerHtml, menuHtml] = await Promise.all([\n    footerPromise,\n    menuPromise,\n  ]);\n\n  return {\n    props: {\n      footerHtml,\n      menuHtml,\n    },\n  };\n};\n```\n\nThe `footer` and `menu` are fetched server-side as HTML and passed as `string` to the page as `props`. The page then renders the strings as inline-HTML.\n\n### Caveats\n\n- Micro-frontends can contain links with relative URL's. These need to be handled correctly.\n- Fonts are not included so they need to be loaded separately. In this application that happens in `pages/_document.tsx`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdmediagroep%2Ftest-mfe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdmediagroep%2Ftest-mfe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdmediagroep%2Ftest-mfe/lists"}