Skip to content

Commit d851033

Browse files
committed
fix(demo): prerender /launch + /callback for SMART OAuth
Both routes are entered as direct hits (browser address bar from the SMART launcher / IdP redirect, not in-app navigation), so they need physical index.html files. crawlLinks doesn't pick them up because the navbar doesn't link to them — added an explicit pages: list.
1 parent af597fe commit d851033

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/his-demo/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const config = defineConfig({
3131
// (/patients/$id) still only resolve via in-app navigation.
3232
prerender: { enabled: true, crawlLinks: true },
3333
},
34+
// SMART OAuth lands users at /launch and /callback as direct hits
35+
// (not in-app navigation), so they need physical files too. The
36+
// navbar doesn't link to them, so crawlLinks alone misses them.
37+
pages: [{ path: '/launch' }, { path: '/callback' }],
3438
}),
3539
viteReact(),
3640
]

0 commit comments

Comments
 (0)