From 331b3d07d00352bd9c94f39ed88a2e2a011923a2 Mon Sep 17 00:00:00 2001
From: Aarni Koskela
Date: Fri, 11 Feb 2022 15:34:02 +0200
Subject: [PATCH] Remove custom CSS-inlining HEAD
---
pages/_document.tsx | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/pages/_document.tsx b/pages/_document.tsx
index 6775597..262ff40 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -3,26 +3,6 @@ import Document, { Html, Head, Main, NextScript } from "next/document";
import { Footer } from "../components/Footer";
import Fader from "../components/Fader";
import ReactGA from "react-ga";
-import fs from "fs";
-import path from "path";
-
-class CustomNextHead extends Head {
- // TODO: This might not be needed if Next.js implements built-in support
- // https://github.com/zeit/next-plugins/issues/364
- getCssLinks({ allFiles }) {
- return allFiles
- .filter((file) => file.endsWith(".css"))
- .map((file) => (
-
- ));
- }
-}
function trackPageView() {
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
@@ -49,7 +29,7 @@ class MyDocument extends Document {
render() {
return (
-
+