-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alessandro Gasperini
authored and
Alessandro Gasperini
committed
Jan 22, 2024
1 parent
caa0f37
commit 22ba702
Showing
6 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { GetStaticPaths, GetStaticProps } from "next/types"; | ||
import { getMultiContainer } from "../../utilities"; | ||
import { Page } from "../[...containerSlug]"; | ||
|
||
export const getStaticProps: GetStaticProps = async ({ params, locale }) => { | ||
const slugs = params?.datasamverkanSlug as Array<string>; | ||
return (await getMultiContainer( | ||
slugs, | ||
locale || "sv", | ||
"datasamverkan", | ||
)) as any; | ||
}; | ||
|
||
export const getStaticPaths: GetStaticPaths = async () => { | ||
const paths: any[] = []; | ||
|
||
return { | ||
paths, | ||
fallback: "blocking", | ||
}; | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { getDomainAggregate } from "@/utilities"; | ||
import { DomainPage } from "@/components/content/DomainPage"; | ||
|
||
export async function getStaticProps({ locale }: any) { | ||
return await getDomainAggregate("datasamverkan", locale); | ||
} | ||
|
||
export default DomainPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters