Fixes #17501 New index will be used once the algolia keys are updated https://github.com/appsmithorg/keys/pull/10 ## Description - Update algolia index name and keys. - Removed [app/client/gitbook-algolia-lambda.js](https://github.com/appsmithorg/appsmith/pull/18146/files#diff-cd4ea8ae515ff25aaad99dc86059b65cc9b67edcde4eb261e1e456497b6957d3). It is being replaced by [website/omnibar-algolia-index.js](https://github.com/appsmithorg/appsmith-docs/pull/564/files#diff-a3f32686fd88fe5556e1dec268d0fa72ddd30a7ca05af48e2d55f1a811acd2c0). - Fixes video and list styles of content shown in the omnibar. - Videos on docs.appsmith.com are wrapped in a `videoembed` tag so have updated the regex for the same. - Image urls also sometimes include algolia highlight tags which makes the url invalid have removed the same https://github.com/appsmithorg/appsmith/pull/18146/files#diff-0e7cdbf77157af62f50ece962a8d4e381b2c070c2453123e8a713298f9640e25R126. - Docusaurus https://docusaurus.io/docs/markdown-features/admonitions have a different syntax have updated the regex to parse the same. https://github.com/appsmithorg/appsmith/pull/18146/files#diff-0e7cdbf77157af62f50ece962a8d4e381b2c070c2453123e8a713298f9640e25R154 TLDR Make omnibar work with the new docs site. ## How Has This Been Tested? - Manual ### Test Plan > Add Testsmith test cases links that relate to this PR ### Issues raised during DP testing https://github.com/appsmithorg/appsmith/issues/17501#issuecomment-1307043824 ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test
70 lines
2.4 KiB
TOML
70 lines
2.4 KiB
TOML
[build]
|
|
[build.environment]
|
|
REACT_APP_OAUTH2_GOOGLE_CLIENT_ID = "enabled"
|
|
REACT_APP_OAUTH2_GITHUB_CLIENT_ID = "enabled"
|
|
REACT_APP_ALGOLIA_API_ID = "AZ2Z9CJSJ0"
|
|
REACT_APP_ALGOLIA_API_KEY = "dfde934d9bdc2e0b14830f1dd3cb240f"
|
|
REACT_APP_ALGOLIA_SEARCH_INDEX_NAME = "omnibar_docusaurus_index"
|
|
REACT_APP_CLIENT_LOG_LEVEL = "debug"
|
|
REACT_APP_GOOGLE_MAPS_API_KEY = "AIzaSyBOQFulljufGt3VDhBAwNjZN09KEFufVyg"
|
|
REACT_APP_GOOGLE_RECAPTCHA_SITE_KEY = ""
|
|
REACT_APP_TNC_PP = "true"
|
|
REACT_APP_CLOUD_HOSTING = "true"
|
|
REACT_APP_INTERCOM_APP_ID = "y10e7138"
|
|
REACT_APP_MAIL_ENABLED = "true"
|
|
REACT_APP_SENTRY_DSN = "https://abf15a075d1347969df44c746cca7eaa@o296332.ingest.sentry.io/1546547"
|
|
REACT_APP_SENTRY_ENVIRONMENT = "Production"
|
|
REACT_APP_SHOW_ONBOARDING_FORM = "true"
|
|
SENTRY_AUTH_TOKEN = "dfdf7fa46c5b483a944b4571554d6466da3c64a6ed8b46e3b8a4285183a6bcc3"
|
|
SENTRY_DSN = "https://abf15a075d1347969df44c746cca7eaa@o296332.ingest.sentry.io/1546547"
|
|
SENTRY_ORG = "appsmith"
|
|
SENTRY_PROJECT = "appsmith"
|
|
SENTRY_LOG_LEVEL = "info"
|
|
REACT_APP_CLOUD_SERVICES_BASE_URL = "https://release-cs.appsmith.com"
|
|
|
|
[context.deploy-preview]
|
|
[context.deploy-preview.environment]
|
|
REACT_APP_ENVIRONMENT = "STAGING"
|
|
REACT_APP_SENTRY_ENVIRONMENT = "Development"
|
|
REACT_APP_BASE_URL = "https://release.app.appsmith.com"
|
|
# Not adding an APP_HOST here because the URL is dynamic in nature and cannot be determined.
|
|
|
|
[context.develop]
|
|
[context.develop.environment]
|
|
REACT_APP_ENVIRONMENT = "STAGING"
|
|
REACT_APP_BASE_URL = "https://release.app.appsmith.com"
|
|
APP_HOST = "develop.app.appsmith.com"
|
|
|
|
[[headers]]
|
|
for = "/static/*"
|
|
[header.values]
|
|
cache-control = "max-age=604800"
|
|
|
|
[[redirects]]
|
|
from = "/api/*"
|
|
to = "API_PLACEHOLDER/api/:splat"
|
|
status = 200
|
|
force = true
|
|
headers = { X-Forwarded-Host = "APP_HOST_PLACEHOLDER", X-Forwarded-Proto = "https" }
|
|
|
|
[[redirects]]
|
|
from = "/oauth2/*"
|
|
to = "API_PLACEHOLDER/oauth2/:splat"
|
|
status = 200
|
|
force = true
|
|
headers = { X-Forwarded-Host = "APP_HOST_PLACEHOLDER", X-Forwarded-Proto = "https" }
|
|
|
|
[[redirects]]
|
|
from = "/login/*"
|
|
to = "API_PLACEHOLDER/login/:splat"
|
|
status = 200
|
|
force = true
|
|
headers = { X-Forwarded-Host = "APP_HOST_PLACEHOLDER", X-Forwarded-Proto = "https" }
|
|
|
|
|
|
# This must be the last redirect in the chain because it's a catch-all
|
|
[[redirects]]
|
|
from = "/*"
|
|
to = "/index.html"
|
|
status = 200
|