mirror of https://github.com/buster-so/buster.git
Merge pull request #977 from buster-so/nate/header-sent-after
Added more header logic
This commit is contained in:
commit
471f58d0fb
|
@ -33,7 +33,6 @@ export const Route = createFileRoute('/app')({
|
|||
const { queryClient, supabaseSession } = context;
|
||||
try {
|
||||
await Promise.all([prefetchGetMyUserInfo(queryClient)]);
|
||||
|
||||
return {
|
||||
supabaseSession,
|
||||
};
|
||||
|
|
|
@ -10,6 +10,7 @@ const PRIMARY_APP_LAYOUT_ID = 'primary-sidebar';
|
|||
const DEFAULT_LAYOUT: LayoutSize = ['230px', 'auto'];
|
||||
|
||||
export const Route = createFileRoute('/app/_app')({
|
||||
ssr: false,
|
||||
loader: async ({ context }) => {
|
||||
const { queryClient } = context;
|
||||
const [initialLayout] = await Promise.all([
|
||||
|
|
|
@ -12,15 +12,14 @@ const searchParamsSchema = z.object({
|
|||
q: z.string().optional(),
|
||||
submit: z
|
||||
.preprocess((val) => {
|
||||
if (typeof val === 'string') {
|
||||
return val === 'true';
|
||||
}
|
||||
if (typeof val === 'string') val === 'true';
|
||||
return val;
|
||||
}, z.boolean())
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const Route = createFileRoute('/app/_app/home')({
|
||||
ssr: false,
|
||||
head: () => {
|
||||
return {
|
||||
meta: [
|
||||
|
|
|
@ -10,7 +10,6 @@ export const Route = createFileRoute('/app/_settings/_restricted_layout/_admin_o
|
|||
throw redirect({ to: '/auth/login', replace: true, statusCode: 307 });
|
||||
}
|
||||
},
|
||||
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue