Skip to content

Commit

Permalink
Use --experimental-build-mode to prevent unwanted pre-rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Starefossen committed Jan 15, 2025
1 parent 7ffef50 commit b2df40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "next build --experimental-build-mode compile",
"start": "node .next/standalone/server.js",
"lint": "next lint",
"test": "jest"
Expand Down Expand Up @@ -34,4 +34,4 @@
"ts-jest": "^29.2.5",
"typescript": "^5"
}
}
}
3 changes: 0 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { getUser } from "@/lib/auth";
import { Button } from "@navikt/ds-react/Button";

export async function getInitialProps() {
return { props: {} };
}
export default async function Home() {
const user = await getUser(false);

Expand Down

0 comments on commit b2df40d

Please sign in to comment.