Commit 7989cfc
fix: skip FAQ page generation when NEXT_PUBLIC_FAQ is disabled (#148)
- Add showFAQ check in generateStaticParams for both FAQ list and detail pages
- Prevents build errors when FAQ feature is disabled via environment variable
- Returns empty array instead of generating paths that will 404
Co-authored-by: archer <archer@archerdeMac-mini.local>1 parent 6efe15d commit 7989cfc
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
0 commit comments