Skip to content

Commit 1eacb9b

Browse files
committed
fixing literature paths build issue
1 parent 6462ecf commit 1eacb9b

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.DS_Store

0 Bytes
Binary file not shown.

server/server.Dockerfile.dockerignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
**/database_volume
1111
**/elasticsearch_volume
1212
**/infra
13-
**/ingestion
14-
**/web
1513
**/.github
16-
**/*.env*
14+
**/*.env*
15+
**/ingestion
16+
**/web

web/src/pages/literature/[...literature].tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
5656
const { getTexts: texts } = await graphQLClient.request(getTextsQuery)
5757
return {
5858
fallback: true,
59-
paths: texts.map((text: Text) => {
60-
const literature = [text.author.name]
61-
if (text.book) literature.push(text.book.title, text.book.id)
62-
literature.push(text.title, text.id)
63-
return { params: { literature } }
64-
}),
59+
paths: texts.map((text: Text) => ({ params: { literature: [text.id] } })),
6560
}
6661
}
6762

web/web.Dockerfile.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
**/database_volume
1111
**/elasticsearch_volume
1212
**/infra
13-
**/ingestion
14-
**/server
1513
**/.github
1614
**/*.env*
15+
**/ingestion
16+
**/server
1717

1818
/.next/
1919
/out/

0 commit comments

Comments
 (0)