mirror of https://github.com/buster-so/buster.git
update logs
This commit is contained in:
parent
74c055f307
commit
4f30296f6f
|
@ -1,4 +1,4 @@
|
|||
import { createRootRouteWithContext, HeadContent, Link, Scripts } from '@tanstack/react-router';
|
||||
import { createRootRouteWithContext, HeadContent, Scripts } from '@tanstack/react-router';
|
||||
import { RootProviders } from '@/context/Providers';
|
||||
import shareImage from '../assets/png/default_preview.png';
|
||||
import favicon from '../assets/png/favicon.ico';
|
||||
|
|
|
@ -13,9 +13,12 @@ const PRIMARY_APP_LAYOUT_ID = 'primary-sidebar';
|
|||
const DEFAULT_LAYOUT: LayoutSize = ['230px', 'auto'];
|
||||
|
||||
export const Route = createFileRoute('/app')({
|
||||
head: () => ({
|
||||
meta: [...preventBrowserCacheHeaders],
|
||||
}),
|
||||
head: () => {
|
||||
console.log('head app route');
|
||||
return {
|
||||
meta: [...preventBrowserCacheHeaders],
|
||||
};
|
||||
},
|
||||
context: ({ context }) => ({ ...context, getAppLayout }),
|
||||
beforeLoad: async () => {
|
||||
console.log('beforeLoad app route');
|
||||
|
|
|
@ -16,14 +16,17 @@ const searchParamsSchema = z.object({
|
|||
});
|
||||
|
||||
export const Route = createFileRoute('/app/_app/home')({
|
||||
head: () => ({
|
||||
meta: [
|
||||
{ title: 'Home' },
|
||||
{ name: 'description', content: 'Buster home dashboard' },
|
||||
{ name: 'og:title', content: 'Home' },
|
||||
{ name: 'og:description', content: 'Buster home dashboard' },
|
||||
],
|
||||
}),
|
||||
head: () => {
|
||||
console.log('head home route');
|
||||
return {
|
||||
meta: [
|
||||
{ title: 'Home' },
|
||||
{ name: 'description', content: 'Buster home dashboard' },
|
||||
{ name: 'og:title', content: 'Home' },
|
||||
{ name: 'og:description', content: 'Buster home dashboard' },
|
||||
],
|
||||
};
|
||||
},
|
||||
validateSearch: searchParamsSchema,
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "web",
|
||||
"main": "./.output/server/index.mjs",
|
||||
"compatibility_date": "2024-09-04",
|
||||
"compatibility_date": "2024-09-10",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
|
||||
"assets": {
|
||||
"directory": ".output/public"
|
||||
"directory": ".output/public",
|
||||
"binding": "ASSETS"
|
||||
},
|
||||
|
||||
"observability": {
|
||||
|
|
Loading…
Reference in New Issue