Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Chore: specify that large passwords will be truncated

Rodrigo Mansueli Nunes44508a0da297
diff --git a/apps/docs/pages/guides/functions/troubleshooting.mdx b/apps/docs/pages/guides/functions/troubleshooting.mdx
index 5bdaad00dd9..79e083224bb 100644
--- a/apps/docs/pages/guides/functions/troubleshooting.mdx
+++ b/apps/docs/pages/guides/functions/troubleshooting.mdx
@@ -34,6 +34,31 @@ There are two debugging tools available: Invocations and Logs. Invocations shows
- Search the [Edge Runtime](https://github.com/supabase/edge-runtime) and [CLI](https://github.com/supabase/cli) repos for the error message, to see if it has been reported before.
- If the output from the commands above does not help you to resolve the issue, please open a support ticket via the Supabase Dashboard (by clicking the "Help" button at the top right) and include all output and details about your commands.
+# Advanced Techniques
+
+## Finding Bundle Size
+
+To find the bundle size of a function, run the following command locally:
+
+```bash
+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.
+
+## Analyze Dependencies
+
+Review 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
+
+```bash
+deno 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