Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn in dev mode when stylesheets are added using next/head #34004

Merged
merged 6 commits into from Feb 4, 2022

Commits on Feb 4, 2022

  1. Warn in dev mode when stylesheets are added using next/head

    This commit adds a development mode warning in the console
    if you try to include <link rel="stylesheet"> tags in
    next/head, e.g.
    
    ```
    <Head>
      <link ref="stylesheet" href="..." />
    </Head>
    ```
    
    The warning message explains that this pattern will not
    work well with Suspense/streaming and recommends using a
    custom Document component instead.
    kara committed Feb 4, 2022
    Copy the full SHA
    1722e7d View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ab96fdb View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    0592962 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    d156778 View commit details
    Browse the repository at this point in the history
  5. lint-fix

    ijjk committed Feb 4, 2022
    Copy the full SHA
    4fbd885 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    06abeb8 View commit details
    Browse the repository at this point in the history