docs: Edge Function docs (#18738)

* docs: Updating the Edge Function docs - making them more accessible

* fixing regional docs

* heading

* some integration guides

* cleans up the import maps guide

* cleans up the testing doc

* Actions

* cleaning up the error docs

* easier quick start

* fix spelling

* changing the page title

* Update apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/pages/guides/functions/regional-invocation.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* remove extraneous comma

* terry feedback

* Update apps/docs/pages/guides/functions/auth.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/pages/guides/functions/auth.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This commit is contained in:
Copple
2023-11-06 20:44:52 +01:00
committed by GitHub
parent 0be5242ad8
commit 1e4e0254c5
15 changed files with 613 additions and 523 deletions

View File

@@ -826,38 +826,69 @@ export const functions: NavMenuConstant = {
},
{
name: 'Quickstart',
url: '/guides/functions/quickstart',
},
{
name: 'Features',
url: undefined,
items: [
{ name: 'TypeScript Support', url: '/guides/functions/typescript-support' },
{ name: 'Debugging Edge Functions', url: '/guides/functions/debugging' },
{ name: 'Managing packages using Import Maps', url: '/guides/functions/import-maps' },
{
name: 'Getting started',
url: '/guides/functions/quickstart',
},
{
name: 'Deploy to Production',
url: '/guides/functions/deploy',
},
{ name: 'Setting up your editor', url: '/guides/functions/local-development' },
],
},
{
name: 'Guides',
url: undefined,
items: [
{ name: 'Developing Functions locally', url: '/guides/functions/local-development' },
{ name: 'Deploying with GitHub', url: '/guides/functions/cicd-workflow' },
{ name: 'Managing Secrets and Environment Variables', url: '/guides/functions/secrets' },
{ name: 'Integrating With Supabase Auth', url: '/guides/functions/auth' },
{ name: 'Managing dependencies', url: '/guides/functions/import-maps' },
{ name: 'Managing environment variables', url: '/guides/functions/secrets' },
{ name: 'Integrating with Supabase Auth', url: '/guides/functions/auth' },
{
name: 'Integrating with Postgres',
url: '/guides/functions/connect-to-postgres',
},
{
name: 'Integrating with Supabase Storage',
url: '/guides/functions/storage-caching',
},
{ name: 'CORS support for Invoking from the browser', url: '/guides/functions/cors' },
{ name: 'Scheduling Functions', url: '/guides/functions/schedule-functions' },
{
name: 'Connecting directly to Postgres',
url: '/guides/functions/connect-to-postgres',
},
{ name: 'Regional invocations', url: '/guides/functions/regional-invocation' },
{ name: 'Deploying with GitHub Actions', url: '/guides/functions/cicd-workflow' },
],
},
{
name: 'Debugging',
url: undefined,
items: [
{ name: 'Debugging Edge Functions', url: '/guides/functions/debugging' },
{ name: 'Testing your Edge Functions', url: '/guides/functions/unit-test' },
{ name: 'Regional Invocation', url: '/guides/functions/regional-invocation' },
{ name: 'Troubleshooting', url: '/guides/functions/troubleshooting' },
],
},
{
name: 'Examples',
url: '/guides/functions/examples',
items: [
{ name: 'CORS support for invoking from the browser', url: '/guides/functions/cors' },
{ name: 'Scheduling Functions', url: '/guides/functions/schedule-functions' },
{ name: 'Generating OG images ', url: '/guides/functions/examples/og-image' },
{
name: 'CAPTCHA support with Cloudflare Turnstile',
url: '/guides/functions/examples/cloudflare-turnstile',
},
{ name: 'Building a Discord Bot', url: '/guides/functions/examples/discord-bot' },
{ name: 'Building a Telegram Bot', url: '/guides/functions/examples/telegram-bot' },
{ name: 'Handling Stripe Webhooks ', url: '/guides/functions/examples/stripe-webhooks' },
{ name: 'Rate-limiting with Redis', url: '/guides/functions/examples/rate-limiting' },
{
name: 'Taking Screenshots with Puppeteer',
url: '/guides/functions/examples/screenshots',
},
{
name: 'Slack Bot responding to mentions',
url: '/guides/functions/examples/slack-bot-mention',
},
],
},
{
@@ -873,31 +904,6 @@ export const functions: NavMenuConstant = {
{ name: 'Type-Safe SQL with Kysely', url: '/guides/functions/kysely-postgres' },
],
},
{
name: 'Examples',
url: '/guides/functions/examples',
items: [
{ name: 'Generating OpenAI GPT3 completions', url: '/guides/ai/examples/openai' },
{ name: 'Generating OG images ', url: '/guides/functions/examples/og-image' },
{
name: 'CAPTCHA support with Cloudflare Turnstile',
url: '/guides/functions/examples/cloudflare-turnstile',
},
{ name: 'Building a Discord Bot', url: '/guides/functions/examples/discord-bot' },
{ name: 'Building a Telegram Bot', url: '/guides/functions/examples/telegram-bot' },
{ name: 'Handling Stripe Webhooks ', url: '/guides/functions/examples/stripe-webhooks' },
{ name: 'Integrating with Upstash Redis', url: '/guides/functions/examples/upstash-redis' },
{ name: 'Rate Limiting Edge Functions', url: '/guides/functions/examples/rate-limiting' },
{
name: 'Taking Screenshots with Puppeteer',
url: '/guides/functions/examples/screenshots',
},
{
name: 'Slack Bot responding to mentions',
url: '/guides/functions/examples/slack-bot-mention',
},
],
},
],
}