mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
ui-next: page data context
This commit is contained in:
5 files changed
+50
-4
No files matched your search
@@ -69,7 +69,7 @@ export async function apply(ctx: Context) {
|
||||
},
|
||||
});
|
||||
const middleware = c2k(vite.middlewares);
|
||||
const capture = ['/@vite/', '/src/', '/node_modules/', '/@react-refresh', '/@fs'];
|
||||
const capture = ['/@vite/', '/src/', '/node_modules/', '/@react-refresh', '/@fs', '/@id/'];
|
||||
for (const route of capture) {
|
||||
ctx.server.addCaptureRoute(route, middleware);
|
||||
}
|
||||
@@ -78,7 +78,7 @@ export async function apply(ctx: Context) {
|
||||
name: 'next',
|
||||
accept: [],
|
||||
output: 'html',
|
||||
asFallback: false,
|
||||
asFallback: true,
|
||||
priority: 100,
|
||||
async render(name, args, context) {
|
||||
const data = {
|
||||
|
||||
Reference in new issue
Block a user