We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef548d commit 78a6297Copy full SHA for 78a6297
packages/start-plugin-core/src/prerender.ts
@@ -24,7 +24,11 @@ export async function prerender({
24
// If prerender is enabled but no pages are provided, try to discover static paths
25
if (startConfig.prerender?.enabled && !startConfig.pages.length) {
26
try {
27
- startConfig.pages = globalThis.TSS_PRERENDABLE_PATHS
+ startConfig.pages = globalThis.TSS_PRERENDABLE_PATHS
28
+ if (!startConfig.pages.length) {
29
+ logger.warn('No static paths discovered. Falling back to root "/"')
30
+ startConfig.pages = [{ path: '/' }]
31
+ }
32
} catch (error) {
33
logger.warn('Failed to get static paths:', error)
34
startConfig.pages = [{ path: '/' }]
0 commit comments