jbilcke-hf's picture
jbilcke-hf HF Staff
easier way to control the number of pages
8cd2153
raw
history blame
332 Bytes
import { getValidNumber } from "./lib/getValidNumber"
export const MAX_NB_PAGES = getValidNumber(process.env.NEXT_PUBLIC_MAX_NB_PAGES, 1, 2, 1)
// TODO: this one should be dynamic and depend upon the page layout type
export const NB_PANELS_PER_PAGE = 4
export const NB_TOTAL_PANELS_TO_GENERATE = MAX_NB_PAGES * NB_PANELS_PER_PAGE