We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d81b55 commit 12ae7aeCopy full SHA for 12ae7ae
web/pages/nyheter/index.global.tsx
@@ -75,7 +75,7 @@ export const getStaticProps: GetStaticProps = async ({ preview = false, locale =
75
// This is a hack and and we should improve this at some point
76
// See https://github.com/vercel/next.js/discussions/18485
77
78
- if (locale !== 'no' && !Flags.HAS_NEWSROOM) {
+ if (locale !== 'no' || !Flags.HAS_NEWSROOM) {
79
return {
80
notFound: true,
81
}
0 commit comments