mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Remove <link ...style.css"> from Head in _document (#5887)
This commit is contained in:
parent
af07611a63
commit
b4e877c8a8
|
@ -1,21 +1,10 @@
|
||||||
/*
|
|
||||||
In production the stylesheet is compiled to .next/static/style.css.
|
|
||||||
The file will be served from /_next/static/style.css
|
|
||||||
You could include it into the page using either next/head or a custom _document.js.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import Document, { Head, Main, NextScript } from 'next/document'
|
import Document, { Head, Main, NextScript } from 'next/document'
|
||||||
|
|
||||||
export default class MyDocument extends Document {
|
export default class MyDocument extends Document {
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<html>
|
<html>
|
||||||
<Head>
|
<Head />
|
||||||
<link
|
|
||||||
rel='stylesheet'
|
|
||||||
href='/_next/static/style.css'
|
|
||||||
/>
|
|
||||||
</Head>
|
|
||||||
<body>
|
<body>
|
||||||
<Main />
|
<Main />
|
||||||
<NextScript />
|
<NextScript />
|
||||||
|
|
Loading…
Reference in a new issue