
* [Feature Flags] Abstraction over flags provider (#2928) * Remove useFlag hook * [Feature Flags] GraphQL build multiple schemas (#2937) * Build script * Refactor build types script * Remove old codegen.yml * Clean feature flags in script * Refactor schema path * Restore useAuthProvider * Update configuration file * encapsulate details for feature flags provider * Add proper env to flagsmith provider * Remove flagsmith mocks * Vite config define global variables * Render flagmisth provider only when is used * Keep name service agnostic * Test with mocked flagsmith * Use global FLAGS varaible for env flags * Fix type issue with FLAGS * Fix build issue * Remove duplicate translations * Fix typo * Prepare for QA tests * Remove test feature flag
1.8 KiB
Configuration
Create .env
file in a root directory or set environment variables with the following values:
-
API_URI
(required) - URI of Saleor GraphQL API instance. If you are running Saleor locally with the default settings, setAPI_URI
to: "http://localhost:8000/graphql/". Make sure you have "/" at the end ofAPI_URI
. -
APP_MOUNT_URI
- URI at which the Dashboard app will be mounted. E.g., if you setAPP_MOUNT_URI
to "/dashboard/", your app will be mounted at "http://localhost:9000/dashboard/". -
STATIC_URL
- URL where the static files are located. E.g., if you use an S3 bucket, you should set it to the bucket's URL. By default, Saleor assumes you serve static files from the root of your site at "http://localhost:9000/". -
MARKETPLACE_URL
- URL where Marketplace App is located. If not found, it will not render a navigation link to the Marketplace (deprecated in favor ofAPPS_MARKETPLACE_API_URI
). -
SALEOR_APPS_PAGE_PATH
- Path appended toMARKETPLACE_URL
to render Saleor Apps page (deprecated). -
SALEOR_APPS_JSON_PATH
- Path appended toMARKETPLACE_URL
to fetch a list of Saleor Apps as JSON (deprecated in favor ofAPPS_MARKETPLACE_API_URI
). -
APP_TEMPLATE_GALLERY_PATH
- Path appended toMARKETPLACE_URL
to render App Template Gallery page (deprecated). -
APPS_MARKETPLACE_API_URI
- URI of Marketplace API to fetch list of Apps in JSON. -
APPS_TUNNEL_URL_KEYWORDS
- Custom apps tunnel URL keywords. -
FLAGS_SERVICE_ENABLED
- Boolean flag determines whether we use external feature flags provider. If you setFLAGS_SERVICE_ENABLED
to "true", we'll be using external feature flag provider as source or flags. If you setFLAGS_SERVICE_ENABLED
to "false" or not set, we'll use fallback flags from environment variables. -
FLAGSMITH_ID
- Flagsmith environment id