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 script tags are added with next/head #33968

Merged
merged 2 commits into from Feb 4, 2022

Commits on Feb 4, 2022

  1. Warn in dev mode when script tags are added with next/head

    This commit adds a development mode warning in the console
    if you try to include <script> tags in next/head, e.g.
    
    ```
    <Head>
      <script async src="..." />
    </Head>
    ```
    
    The warning message explains that this pattern will not
    work well with Suspense/streaming and recommends using the
    next/script component instead.
    kara committed Feb 4, 2022
    Copy the full SHA
    1538585 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    62d3aff View commit details
    Browse the repository at this point in the history