diff --git a/next-env.d.ts b/next-env.d.ts index 7b7aa2c..4f11a03 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,2 +1,5 @@ /// -/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/next.config.js b/next.config.js deleted file mode 100644 index 5f37a6b..0000000 --- a/next.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - future: { - webpack5: true, - }, -} \ No newline at end of file diff --git a/package.json b/package.json index c1ad390..373ff7a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@headlessui/react": "^1.4.1", "@heroicons/react": "^1.0.4", "framer-motion": "^4.1.2", - "next": "^10.1.3", + "next": "^12.1.6", "next-page-transitions": "^1.0.0-beta.2", "next-seo": "^4.23.0", "react": "^17.0.1", @@ -26,7 +26,7 @@ "autoprefixer": "^10.2.5", "postcss-preset-env": "^6.7.0", "tailwindcss": "^2.0.4", - "typescript": "4.0" + "typescript": "^4.6.4" }, "license": "MPL-2.0" } diff --git a/pages/_document.tsx b/pages/_document.tsx index d26b9bf..678ef6c 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -3,7 +3,8 @@ import Document, { Main, NextScript, DocumentContext, -} from 'next/document'; + Head, +} from "next/document"; class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { @@ -15,10 +16,11 @@ class MyDocument extends Document { render() { return ( +
- {process.env.NODE_ENV === 'production' && ( + {process.env.NODE_ENV === "production" && ( <>