Daydreamer-riri / vite-react-ssg

Static-site generation for React on Vite.
https://vite-react-ssg.netlify.app/
MIT License
114 stars 6 forks source link

[Bug] Duplicate head tag #9

Closed condorheroblog closed 9 months ago

condorheroblog commented 10 months ago
    <head>
        <meta charset="UTF-8" />
        <link rel="icon" href="data:," />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>vite-plugin-fake-server</title>
    </head>

The above is the content of my index.html file, vite-react-ssg will render it as follows

image


If I use the Head component provided by vite-react-ssg, I still have this problem

import { Head as SSGHead } from "vite-react-ssg";

export function Head() {
    return (
        <header>
            <SSGHead>
                <title>vite-plugin-fake-server</title>
            </SSGHead>
        </header>
    );
}

image

Daydreamer-riri commented 10 months ago

Whether you encountered this bug under the vite command?

condorheroblog commented 10 months ago

Whether you encountered this bug under the vite command?

No, normal under vite command.

condorheroblog commented 9 months ago

You Rock👍