Skip to content

Conversation

@dajinchu
Copy link
Collaborator

@dajinchu dajinchu commented Jan 16, 2026

add more diagnostic info to fastify req so that wrapped/passthru/wrapped-no-layout can be distinguished

interface FastifyRequest {
bifrostPageId?: string | null;
/// Actual ProxyMode after processing backend server results, which can tell us to fallback to passthru or redirect
bifrostProxyMode?: Vike.Config["proxyMode"];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

together, this gives us full differentiation between:

  1. passthru because bifrost
  2. passthru after wrapped proxy returned 3xx or nil layout (proxyMode == "passthru" && bifrostSentProxyHeaders)
  3. actually rendered wrapped

@dajinchu dajinchu changed the title dc/better diagnostics Additional Diagnostics Jan 16, 2026
@dajinchu dajinchu merged commit 09ae474 into master Jan 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants