Skip to content

Commit

Permalink
fix: potential fix for module not found in prod website
Browse files Browse the repository at this point in the history
Signed-off-by: sarthakjdev <[email protected]>
  • Loading branch information
sarthakjdev committed May 15, 2024
1 parent cbca532 commit d3e0fcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/wapijs.co/src/app/docs/[version]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { resolveItemUri } from '~/reusable-function'
import { notFound } from 'next/navigation'
import { addPackageToModel, fetchDocumentationJsonDataFromSlug } from '~/utils/api-extractor'

export const revalidate = 60 * 60 * 24 * 30
export const dynamicParams = true

export default async function VersionHomeLayout({
children,
params
Expand Down
3 changes: 3 additions & 0 deletions apps/wapijs.co/src/app/docs/[version]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { readFile } from 'node:fs/promises'
import getWasm from 'shiki/wasm'
import { fetchVersions } from '~/reusable-function'

export const revalidate = 60 * 60 * 24 * 30
export const dynamicParams = true

async function fetchReadMeFileFromGithub() {
if (IS_DEVELOPMENT) {
const fileContent = await readFile(join(process.cwd(), '..', '..', 'README.md'), 'utf8')
Expand Down

0 comments on commit d3e0fcf

Please sign in to comment.