Skip to content

CCM-8628: use nextjs metadata api#310

Merged
harrim91 merged 3 commits intomainfrom
feature/CCM-8628-favicons
Feb 20, 2025
Merged

CCM-8628: use nextjs metadata api#310
harrim91 merged 3 commits intomainfrom
feature/CCM-8628-favicons

Conversation

@harrim91
Copy link
Contributor

Description

Next.js manipulates the <head> element of the document. Best practice for setting icons and metadata is to use the Metadata API. This PR makes the switch to minimise manual usage of <head> / <Head> to properly set page metadata using nextjs conventions.

Context

Favicons were broken in the auth app. This PR brings both applications in line with each other, using the metadata api.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@alexnuttall
Copy link
Contributor

Do you think we ought to be using next/script too? https://nextjs.org/docs/app/building-your-application/optimizing/scripts

@harrim91 harrim91 merged commit 603ec7d into main Feb 20, 2025
28 checks passed
@harrim91 harrim91 deleted the feature/CCM-8628-favicons branch February 20, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants