1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website/vercel.json
Nnenna Ndukwe b64f8ad800
React examples doc with images and relative links (#5921)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

This is a large PR with all of the React examples building on top of the
original tutorial.

Based off of this Google Doc:
https://docs.google.com/document/d/1m3ujgyrkJTCGLsEsBr1_eq4HQKqsf-lfvGFDJobns44/edit

I also included updates to the React tutorial links so they are relative
paths, not full URL paths.

I propose we make fast-follow updates to this piece of documentation for
changes we need to make in order to release and iterate on minor
updates.

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->

website/docs/feature-flag-tutorials/react/examples.md

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2024-01-18 11:39:25 -05:00

779 lines
21 KiB
JSON

{
"cleanUrls": true,
"rewrites": [
{
"source": "/helm-charts/index.yaml",
"destination": "https://raw.githubusercontent.com/Unleash/helm-charts/gh-pages/index.yaml"
},
{
"source": "/helm-charts(/?)",
"destination": "https://raw.githubusercontent.com/Unleash/helm-charts/gh-pages/README.md"
},
{
"source": "/helm-charts(/?):path(.*)",
"destination": "https://gh.getunleash.io/helm-charts/:path"
}
],
"redirects": [
{
"source": "/unleash-client-python(/?)/:path",
"destination": "https://gh.getunleash.io/unleash-client-python/:path",
"permanent": true
},
{
"source": "/user_guide/api-token",
"destination": "/how-to/how-to-create-api-tokens",
"permanent": true
},
{
"source": "/deploy/user_guide/api-token",
"destination": "/how-to/how-to-create-api-tokens",
"permanent": true
},
{
"source": "/advanced/audit_log",
"destination": "/reference/event-log",
"permanent": true
},
{
"source": "/api/open_api",
"destination": "/reference/api/unleash",
"permanent": true
},
{
"source": "/advanced/api_access",
"destination": "/how-to/how-to-use-the-admin-api",
"permanent": true
},
{
"source": "/advanced/archived_toggles",
"destination": "/reference/archived-toggles",
"permanent": true
},
{
"source": "/advanced/custom-activation-strategy",
"destination": "/reference/custom-activation-strategies",
"permanent": true
},
{
"source": "/advanced/custom_activation_strategy",
"destination": "/reference/custom-activation-strategies",
"permanent": true
},
{
"source": "/advanced/feature_toggle_types",
"destination": "/reference/feature-toggle-types",
"permanent": true
},
{
"source": "/toggle_variants",
"destination": "/reference/feature-toggle-variants",
"permanent": true
},
{
"source": "/advanced/feature_toggle_variants",
"destination": "/reference/feature-toggle-variants",
"permanent": true
},
{
"source": "/advanced/toggle_variants",
"destination": "/reference/feature-toggle-variants",
"permanent": true
},
{
"source": "/advanced/impression-data",
"destination": "/reference/impression-data",
"permanent": true
},
{
"source": "/advanced/impression_data",
"destination": "/reference/impression-data",
"permanent": true
},
{
"source": "/advanced/stickiness",
"destination": "/reference/stickiness",
"permanent": true
},
{
"source": "/advanced/sso-google",
"destination": "/how-to/how-to-add-sso-google",
"permanent": true
},
{
"source": "/advanced/sso-open-id-connect",
"destination": "/how-to/how-to-add-sso-open-id-connect",
"permanent": true
},
{
"source": "/advanced/sso-saml-keycloak",
"destination": "/how-to/how-to-add-sso-saml-keycloak",
"permanent": true
},
{
"source": "/advanced/sso-saml",
"destination": "/how-to/how-to-add-sso-saml",
"permanent": true
},
{
"source": "/advanced/strategy_constraints",
"destination": "/reference/strategy-constraints",
"permanent": true
},
{
"source": "/advanced/tags",
"destination": "/reference/tags",
"permanent": true
},
{
"source": "/advanced/enterprise-authentication",
"destination": "/reference/sso",
"permanent": true
},
{
"source": "/addons",
"destination": "/reference/integrations",
"permanent": true
},
{
"source": "/reference/addons",
"destination": "/reference/integrations",
"permanent": true
},
{
"source": "/addons/datadog",
"destination": "/reference/integrations/datadog",
"permanent": true
},
{
"source": "/reference/addons/datadog",
"destination": "/reference/integrations/datadog",
"permanent": true
},
{
"source": "/addons/slack",
"destination": "/reference/integrations/slack",
"permanent": true
},
{
"source": "/reference/addons/slack",
"destination": "/reference/integrations/slack",
"permanent": true
},
{
"source": "/addons/slack-app",
"destination": "/reference/integrations/slack-app",
"permanent": true
},
{
"source": "/reference/addons/slack-app",
"destination": "/reference/integrations/slack-app",
"permanent": true
},
{
"source": "/addons/teams",
"destination": "/reference/integrations/teams",
"permanent": true
},
{
"source": "/reference/addons/teams",
"destination": "/reference/integrations/teams",
"permanent": true
},
{
"source": "/addons/webhook",
"destination": "/reference/integrations/webhook",
"permanent": true
},
{
"source": "/reference/addons/webhook",
"destination": "/reference/integrations/webhook",
"permanent": true
},
{
"source": "/guides/feature_updates_to_slack",
"destination": "/how-to/how-to-send-feature-updates-to-slack-deprecated",
"permanent": true
},
{
"source": "/integrations/integrations",
"destination": "/reference/integrations",
"permanent": true
},
{
"source": "/integrations",
"destination": "/reference/integrations",
"permanent": true
},
{
"source": "/integrations/jira_server_plugin_installation",
"destination": "/reference/integrations/jira-server-plugin-installation",
"permanent": true
},
{
"source": "/integrations/jira_server_plugin_usage",
"destination": "/reference/integrations/jira-server-plugin-usage",
"permanent": true
},
{
"source": "/sdks",
"destination": "/reference/sdks",
"permanent": true
},
{
"source": "/user_guide/client-sdk",
"destination": "/reference/sdks",
"permanent": true
},
{
"source": "/client-sdk",
"destination": "/reference/sdks",
"permanent": true
},
{
"source": "/user_guide/connect_sdk",
"destination": "/reference/sdks",
"permanent": true
},
{
"source": "/sdks/community",
"destination": "/reference/sdks",
"permanent": true
},
{
"source": "/sdks/go_sdk",
"destination": "/reference/sdks/go",
"permanent": true
},
{
"source": "/sdks/java_sdk",
"destination": "/reference/sdks/java",
"permanent": true
},
{
"source": "/sdks/node_sdk",
"destination": "/reference/sdks/node",
"permanent": true
},
{
"source": "/sdks/php_sdk",
"destination": "/reference/sdks/php",
"permanent": true
},
{
"source": "/sdks/python_sdk",
"destination": "/reference/sdks/python",
"permanent": true
},
{
"source": "/sdks/dot_net_sdk",
"destination": "/reference/sdks/dotnet",
"permanent": true
},
{
"source": "/sdks/ruby_sdk",
"destination": "/reference/sdks/ruby",
"permanent": true
},
{
"source": "/sdks/android_proxy_sdk",
"destination": "/reference/sdks/android-proxy",
"permanent": true
},
{
"source": "/sdks/proxy-ios",
"destination": "/reference/sdks/ios-proxy",
"permanent": true
},
{
"source": "/sdks/proxy-javascript",
"destination": "/reference/sdks/javascript-browser",
"permanent": true
},
{
"source": "/sdks/javascript-browser",
"destination": "/reference/sdks/javascript-browser",
"permanent": true
},
{
"source": "/sdks/proxy-react",
"destination": "/reference/sdks/react",
"permanent": true
},
{
"source": "/sdks/react",
"destination": "/reference/sdks/react",
"permanent": true
},
{
"source": "/sdks/proxy-vue",
"destination": "/reference/sdks/vue",
"permanent": true
},
{
"source": "/sdks/proxy-svelte",
"destination": "/reference/sdks/svelte",
"permanent": true
},
{
"source": "/user_guide/native_apps",
"destination": "/reference/unleash-proxy",
"permanent": true
},
{
"source": "/user_guide/proxy-api",
"destination": "/reference/unleash-proxy",
"permanent": true
},
{
"source": "/sdks/unleash-proxy",
"destination": "/reference/unleash-proxy",
"permanent": true
},
{
"source": "/user_guide/create_feature_toggle",
"destination": "/how-to/how-to-create-feature-toggles",
"permanent": true
},
{
"source": "/user_guide/control_rollout",
"destination": "/reference/activation-strategies",
"permanent": true
},
{
"source": "/user_guide/activation_strategy",
"destination": "/reference/activation-strategies",
"permanent": true
},
{
"source": "/user_guide/environments",
"destination": "/reference/environments",
"permanent": true
},
{
"source": "/user_guide/projects",
"destination": "/reference/projects",
"permanent": true
},
{
"source": "/user_guide/rbac",
"destination": "/reference/rbac",
"permanent": true
},
{
"source": "/advanced/groups",
"destination": "/reference/rbac",
"permanent": true
},
{
"source": "/user_guide/technical_debt",
"destination": "/reference/technical-debt",
"permanent": true
},
{
"source": "/user_guide/unleash_context",
"destination": "/reference/unleash-context",
"permanent": true
},
{
"source": "/user_guide/user-management",
"destination": "/how-to/how-to-add-users-to-unleash",
"permanent": true
},
{
"source": "/user_guide/v4-whats-new",
"destination": "/reference/whats-new-v4",
"permanent": true
},
{
"source": "/user_guide/important-concepts",
"destination": "/reference",
"permanent": true
},
{
"source": "/tutorials/important-concepts",
"destination": "/reference",
"permanent": true
},
{
"source": "/reference/concepts/",
"destination": "/reference",
"permanent": true
},
{
"source": "/user_guide/quickstart",
"destination": "/quickstart",
"permanent": true
},
{
"source": "/docs/getting_started",
"destination": "/quickstart",
"permanent": true
},
{
"source": "/tutorials/quickstart",
"destination": "/quickstart",
"permanent": true
},
{
"source": "/tutorials/getting-started",
"destination": "/quickstart",
"permanent": true
},
{
"source": "/api/basic-auth",
"destination": "/reference/api/legacy/unleash/basic-auth",
"permanent": true
},
{
"source": "/api",
"destination": "/reference/api/legacy/unleash",
"permanent": true
},
{
"source": "/api/admin/addons",
"destination": "/reference/api/legacy/unleash/admin/addons",
"permanent": true
},
{
"source": "/api/admin/context",
"destination": "/reference/api/legacy/unleash/admin/context",
"permanent": true
},
{
"source": "/api/admin/events",
"destination": "/reference/api/legacy/unleash/admin/events",
"permanent": true
},
{
"source": "/api/admin/feature-toggles-v2",
"destination": "/reference/api/legacy/unleash/admin/features-v2",
"permanent": true
},
{
"source": "/api/admin/feature-types",
"destination": "/reference/api/legacy/unleash/admin/feature-types",
"permanent": true
},
{
"source": "/api/admin/features",
"destination": "/reference/api/legacy/unleash/admin/features",
"permanent": true
},
{
"source": "/api/admin/features-archive",
"destination": "/reference/api/legacy/unleash/admin/archive",
"permanent": true
},
{
"source": "/api/admin/metrics",
"destination": "/reference/api/legacy/unleash/admin/metrics",
"permanent": true
},
{
"source": "/api/admin/projects",
"destination": "/reference/api/legacy/unleash/admin/projects",
"permanent": true
},
{
"source": "/api/admin/segments",
"destination": "/reference/api/legacy/unleash/admin/segments",
"permanent": true
},
{
"source": "/api/admin/state",
"destination": "/reference/api/legacy/unleash/admin/state",
"permanent": true
},
{
"source": "/api/admin/strategies",
"destination": "/reference/api/legacy/unleash/admin/strategies",
"permanent": true
},
{
"source": "/api/admin/tags",
"destination": "/reference/api/legacy/unleash/admin/tags",
"permanent": true
},
{
"source": "/api/admin/user-admin",
"destination": "/reference/api/legacy/unleash/admin/user-admin",
"permanent": true
},
{
"source": "/api/client/features",
"destination": "/reference/api/legacy/unleash/client/features",
"permanent": true
},
{
"source": "/api/client/metrics",
"destination": "/reference/api/legacy/unleash/client/metrics",
"permanent": true
},
{
"source": "/api/client/register",
"destination": "/reference/api/legacy/unleash/client/register",
"permanent": true
},
{
"source": "/api/internal/internal",
"destination": "/reference/api/legacy/unleash/internal/prometheus",
"permanent": true
},
{
"source": "/api/internal/health",
"destination": "/reference/api/legacy/unleash/internal/health",
"permanent": true
},
{
"source": "/help",
"destination": "/",
"permanent": true
},
{
"source": "/topics/feature-flags/tutorials",
"destination": "/feature-flag-tutorials",
"permanent": true
},
{
"source": "/tutorials",
"destination": "/feature-flag-tutorials",
"permanent": true
},
{
"source": "/topics/feature-flags/tutorials/react/implementing-feature-flags",
"destination": "/feature-flag-tutorials/react",
"permanent": true
},
{
"source": "/topics/feature-flags/tutorials/flutter/a-b-testing",
"destination": "/feature-flag-tutorials/flutter/a-b-testing",
"permanent": true
},
{
"source": "/topics/feature-flags/tutorials/nextjs/implementing-feature-flags",
"destination": "/feature-flag-tutorials/nextjs/implementing-feature-flags",
"permanent": true
},
{
"source": "/tutorials/academy",
"destination": "/unleash-academy/introduction",
"permanent": true
},
{
"source": "/unleash-academy",
"destination": "/unleash-academy/introduction",
"permanent": true
},
{
"source": "/tutorials/academy-foundational",
"destination": "/unleash-academy/foundational",
"permanent": true
},
{
"source": "/tutorials/academy-advanced-for-devs",
"destination": "/unleash-academy/advanced-for-devs",
"permanent": true
},
{
"source": "/tutorials/academy-managing-unleash-for-devops",
"destination": "/unleash-academy/managing-unleash-for-devops",
"permanent": true
},
{
"source": "/developer-guide",
"destination": "/contributing",
"permanent": true
},
{
"source": "/tutorials/unleash-overview",
"destination": "/understanding-unleash/unleash-overview",
"permanent": true
},
{
"source": "/user_guide/unleash_overview",
"destination": "/understanding-unleash/unleash-overview",
"permanent": true
},
{
"source": "/tutorials/managing-constraints",
"destination": "/understanding-unleash/managing-constraints",
"permanent": true
},
{
"source": "/topics/managing-constraints",
"destination": "/understanding-unleash/managing-constraints",
"permanent": true
},
{
"source": "/tutorials/the-anatomy-of-unleash",
"destination": "/understanding-unleash/the-anatomy-of-unleash",
"permanent": true
},
{
"source": "/topics/the-anatomy-of-unleash",
"destination": "/understanding-unleash/the-anatomy-of-unleash",
"permanent": true
},
{
"source": "/tutorials/proxy-hosting",
"destination": "/understanding-unleash/proxy-hosting",
"permanent": true
},
{
"source": "/topics/proxy-hosting",
"destination": "/understanding-unleash/proxy-hosting",
"permanent": true
},
{
"source": "/tutorials/data-collection",
"destination": "/understanding-unleash/data-collection",
"permanent": true
},
{
"source": "/topics/data-collection",
"destination": "/understanding-unleash/data-collection",
"permanent": true
},
{
"source": "/how-to/how-to-troubleshoot-flag-exposure",
"destination": "/using-unleash/troubleshooting/flag-exposure",
"permanent": true
},
{
"source": "/how-to/how-to-troubleshoot-flag-not-returned",
"destination": "/using-unleash/troubleshooting/flag-not-returned",
"permanent": true
},
{
"source": "/how-to/how-to-troubleshoot-cors",
"destination": "/using-unleash/troubleshooting/cors",
"permanent": true
},
{
"source": "/how-to/how-to-troubleshoot-feature-not-available",
"destination": "/using-unleash/troubleshooting/feature-not-available",
"permanent": true
},
{
"source": "/reference/deploy",
"destination": "/using-unleash/deploy",
"permanent": true
},
{
"source": "/deploy",
"destination": "/using-unleash/deploy",
"permanent": true
},
{
"source": "/reference/deploy/getting-started",
"destination": "/using-unleash/deploy/getting-started",
"permanent": true
},
{
"source": "/deploy/getting_started",
"destination": "/using-unleash/deploy/getting-started",
"permanent": true
},
{
"source": "/reference/deploy/configuring-unleash",
"destination": "/using-unleash/deploy/configuring-unleash",
"permanent": true
},
{
"source": "/deploy/configuring_unleash",
"destination": "/using-unleash/deploy/configuring-unleash",
"permanent": true
},
{
"source": "/reference/deploy/configuring-unleash-v3",
"destination": "/using-unleash/deploy/configuring-unleash-v3",
"permanent": true
},
{
"source": "/deploy/configuring_unleash_v3",
"destination": "/using-unleash/deploy/configuring-unleash-v3",
"permanent": true
},
{
"source": "/reference/deploy/database-setup",
"destination": "/using-unleash/deploy/database-setup",
"permanent": true
},
{
"source": "/deploy/database-setup",
"destination": "/using-unleash/deploy/database-setup",
"permanent": true
},
{
"source": "/reference/deploy/database-backup",
"destination": "/using-unleash/deploy/database-backup",
"permanent": true
},
{
"source": "/deploy/database-backup",
"destination": "/using-unleash/deploy/database-backup",
"permanent": true
},
{
"source": "/reference/deploy/email-service",
"destination": "/using-unleash/deploy/email-service",
"permanent": true
},
{
"source": "/deploy/email",
"destination": "/using-unleash/deploy/email-service",
"permanent": true
},
{
"source": "/reference/deploy/google-auth-hook",
"destination": "/using-unleash/deploy/google-auth-hook",
"permanent": true
},
{
"source": "/deploy/google_auth",
"destination": "/using-unleash/deploy/google-auth-hook",
"permanent": true
},
{
"source": "/deploy/migration_guide",
"destination": "/using-unleash/deploy/upgrading-unleash",
"permanent": true
},
{
"source": "/reference/deploy/migration-guide",
"destination": "/using-unleash/deploy/upgrading-unleash",
"permanent": true
},
{
"source": "/reference/deploy/securing-unleash",
"destination": "/using-unleash/deploy/securing-unleash",
"permanent": true
},
{
"source": "/deploy/securing_unleash",
"destination": "/using-unleash/deploy/securing-unleash",
"permanent": true
},
{
"source": "/reference/deploy/import-export",
"destination": "/how-to/how-to-import-export",
"permanent": true
},
{
"source": "/deploy/import_export",
"destination": "/how-to/how-to-import-export",
"permanent": true
},
{
"source": "/reference/deploy/environment-import-export",
"destination": "/how-to/how-to-environment-import-export",
"permanent": true
},
{
"source": "/deploy/environment-import-export",
"destination": "/how-to/how-to-environment-import-export",
"permanent": true
}
]
}