update logs

This commit is contained in:
Nate Kelley 2025-09-10 20:26:44 -06:00
parent 74c055f307
commit 4f30296f6f
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 21 additions and 14 deletions

View File

@ -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';

View File

@ -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');

View File

@ -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,
});

View File

@ -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": {