Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(route-manifest): Add relativeFilePath to route manifest #10416

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/internal/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export interface RWRouteManifestItem {
routeHooks: string | null
bundle: string | null
hasParams: boolean
relativeFilePath: string | undefined
redirect: { to: string; permanent: boolean } | null
renderMode: 'html' | 'stream'
// Probably want isNotFound here, so we can attach a separate 404 handler
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/buildRouteManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function buildRouteManifest() {
permanent: false,
}
: null,
renderMode: route.renderMode,
relativeFilePath: route.relativeFilePath,
}

return acc
Expand Down
Loading