Remove logs and other nonsense

This commit is contained in:
Nate Kelley 2025-09-17 10:50:45 -06:00
parent c366424525
commit 70acfe13fa
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
5 changed files with 0 additions and 14 deletions

View File

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

View File

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

View File

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

View File

@ -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) {

View File

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