Skip to content

Commit

Permalink
en
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichmax committed Feb 2, 2024
1 parent 9c08d9e commit 5969651
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
})

const nextConfig = {
output: "standalone",
//output: "standalone",
images: {
//loader: "custom",
//loaderFile: "./src/utils/loader.js",
Expand Down
15 changes: 13 additions & 2 deletions pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Document from "next/document"
import { ServerStyleSheet } from "styled-components"

import { ServerStyleSheet } from "styled-components"
import Document, { Html, Head, Main, NextScript } from "next/document";
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const sheet = new ServerStyleSheet()
Expand All @@ -27,4 +27,15 @@ export default class MyDocument extends Document {
sheet.seal()
}
}
render() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}

0 comments on commit 5969651

Please sign in to comment.