The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Included @laktek suggestions
Rodrigo Mansueli Nunesf829a4bf5a42
diff --git a/apps/docs/pages/guides/functions/troubleshooting.mdx b/apps/docs/pages/guides/functions/troubleshooting.mdxindex 79e083224bb..8e8449b1db3 100644--- a/apps/docs/pages/guides/functions/troubleshooting.mdx+++ b/apps/docs/pages/guides/functions/troubleshooting.mdx@@ -36,6 +36,10 @@ There are two debugging tools available: Invocations and Logs. Invocations shows# Advanced Techniques+## Checking Function Boot Time++Check the logs for the function. In the logs, look for a "Booted" event and note the reported boot time. If available, click on the event to access more details, including the regions from where the function was served. Investigate if the boot time is excessively high (`higher than 1 second`) and note any patterns or regions where it occurs.+## Finding Bundle SizeTo find the bundle size of a function, run the following command locally:@@ -44,21 +48,17 @@ To find the bundle size of a function, run the following command locally:deno info /path/to/function/index.ts```-Look for the "size" field in the output which represents the bundle size of the function. If the function is part of a larger application, consider examining the bundle size of the specific function independently.+Look for the "size" field in the output which represents an approximated the bundle size of the function.You can find the accurate bundle size when you deploy your function via Supabase CLI. If the function is part of a larger application, consider examining the bundle size of the specific function independently.## Analyze DependenciesReview the dependencies listed in the output of the `deno info` command. Pay attention to any significantly large dependencies, as they can contribute to increased bundle size and potential boot time issues.-Examine if there are any unnecessary or redundant dependencies that can be removed. Check for outdated dependencies and recommend updating to the latest versions if applicable. Make sure to also check the import maps+Examine if there are any unnecessary or redundant dependencies that can be removed. Check for outdated dependencies and recommend updating to the latest versions if applicable. When running deno info make sure to provide the correct path of the import map if you use one.```bashdeno info --import-map=/path/to/import_map.json /path/to/function/index.ts```-## Checking Function Boot Time--Check the logs for the function. In the logs, look for a "Booted" event and note the reported boot time. If available, click on the event to access more details, including the regions from where the function was served. Investigate if the boot time is excessively high (`bigger than 1 second`) and note any patterns or regions where it occurs.-export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Page