mirror of https://github.com/buster-so/buster.git
Remove logs and other nonsense
This commit is contained in:
parent
c366424525
commit
70acfe13fa
|
@ -62,15 +62,6 @@ export const createAxiosInstance = (baseURL = BASE_URL_V2) => {
|
|||
|
||||
export const defaultAxiosRequestHandler = async (config: InternalAxiosRequestConfig<unknown>) => {
|
||||
try {
|
||||
console.log('basic config', {
|
||||
url: config.url,
|
||||
method: config.method,
|
||||
headers: config.headers,
|
||||
data: config.data,
|
||||
params: config.params,
|
||||
baseURL: config.baseURL,
|
||||
timeout: config.timeout,
|
||||
});
|
||||
const session = await getSupabaseSession();
|
||||
const { accessToken: token } = session;
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ export const extractSimplifiedSupabaseSession = async (
|
|||
|
||||
export const getSupabaseSessionServerFn = createServerFn({ method: 'GET' }).handler(async () => {
|
||||
try {
|
||||
console.log('getSupabaseSessionServerFn');
|
||||
const supabase = getSupabaseServerClient();
|
||||
const { data, error } = await extractSimplifiedSupabaseSession(supabase);
|
||||
return {
|
||||
|
|
|
@ -16,7 +16,6 @@ export type SimplifiedSupabaseSession = {
|
|||
};
|
||||
|
||||
export const getSupabaseSession = async (): Promise<SimplifiedSupabaseSession> => {
|
||||
console.log('getSupabaseSession', isServer ? 'server' : 'client');
|
||||
const { data: sessionData, error: sessionError } = isServer
|
||||
? await getSupabaseSessionServerFn()
|
||||
: await extractSimplifiedSupabaseSession(supabase);
|
||||
|
|
|
@ -14,7 +14,6 @@ export const Route = createFileRoute('/app')({
|
|||
context: ({ context }) => ({ ...context, getAppLayout }),
|
||||
beforeLoad: async () => {
|
||||
try {
|
||||
console.log('app route beforeLoad', typeof window !== 'undefined', import.meta.env.SSR);
|
||||
const supabaseSession = await getSupabaseSession();
|
||||
const { isExpired, accessToken = '' } = supabaseSession;
|
||||
if (isExpired || !accessToken) {
|
||||
|
|
|
@ -36,12 +36,10 @@ export const Route = createFileRoute('/app/_app/home')({
|
|||
console.time('home route loader');
|
||||
const user = await prefetchGetMyUserInfo(queryClient);
|
||||
if (user?.user?.id) {
|
||||
console.log('prefetching shortcuts and prompts');
|
||||
await Promise.all([
|
||||
prefetchListShortcuts(queryClient),
|
||||
prefetchGetSuggestedPrompts(user.user.id, queryClient),
|
||||
]);
|
||||
console.log('finished prefetching shortcuts and prompts');
|
||||
}
|
||||
console.timeEnd('home route loader');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue