Skip to content

Commit

Permalink
Add preview env
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLantukh committed Jan 22, 2025
1 parent bc3bcdb commit d76c88e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/common/src/services/ConfigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import env from '../env';

@injectable()
export default class ConfigService {
protected CONFIG_HOST = env.APP_API_BASE_URL;
// Explicitly set default config here as a local variable,
// otherwise if it's a module level const, the merge below causes changes to nested properties
protected DEFAULT_CONFIG: Config = {
Expand Down
32 changes: 32 additions & 0 deletions platforms/web/.env.preview
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
APP_API_BASE_URL=https://cdn-dev.jwplayer.com
APP_PLAYER_ID=M4qoGvUk

# page metadata (SEO)
#APP_NAME=
#APP_SHORT_NAME=
#APP_DESCRIPTION

# UI configuration
APP_VERSION=$npm_package_version
APP_FOOTER_TEXT="\u00a9 JW Player | [jwplayer.com](https://www.jwplayer.com/) | v${APP_VERSION}"

# config for Google Services
#APP_GTM_TAG_ID
#APP_GOOGLE_SITE_VERIFICATION_ID

# app metadata, for smart app banner (iOS) and native app banner (Android)
# APP_APPLE_ITUNES_APP
# APP_GOOGLE_RELATED_APPLICATION_ID

# override with custom fonts. supports Google Fonts (eg. APP_BODY_FONT_FAMILY=google:Roboto,system:Verdana - use Roboto and fallback to Verdana)
#APP_BODY_FONT_FAMILY
#APP_BODY_ALT_FONT_FAMILY

# public URL must be set for standalone applications
#APP_PUBLIC_URL

# the default language that the app should load when the language couldn't be detected
APP_DEFAULT_LANGUAGE=en

# a comma separated list of languages that are enabled (this only works for languages that are enabled in the app)
APP_ENABLED_LANGUAGES=en,es
2 changes: 0 additions & 2 deletions platforms/web/ini/templates/.webapp.preview.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
defaultConfigSource =
; Allow any config
UNSAFE_allowAnyConfigSource = true
; Use dev api
APP_API_BASE_URL= https://cdn-dev.jwplayer.com

0 comments on commit d76c88e

Please sign in to comment.