Skip to content

Commit d76c88e

Browse files
committed
Add preview env
1 parent bc3bcdb commit d76c88e

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

packages/common/src/services/ConfigService.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import env from '../env';
1313

1414
@injectable()
1515
export default class ConfigService {
16-
protected CONFIG_HOST = env.APP_API_BASE_URL;
1716
// Explicitly set default config here as a local variable,
1817
// otherwise if it's a module level const, the merge below causes changes to nested properties
1918
protected DEFAULT_CONFIG: Config = {

platforms/web/.env.preview

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
APP_API_BASE_URL=https://cdn-dev.jwplayer.com
2+
APP_PLAYER_ID=M4qoGvUk
3+
4+
# page metadata (SEO)
5+
#APP_NAME=
6+
#APP_SHORT_NAME=
7+
#APP_DESCRIPTION
8+
9+
# UI configuration
10+
APP_VERSION=$npm_package_version
11+
APP_FOOTER_TEXT="\u00a9 JW Player | [jwplayer.com](https://www.jwplayer.com/) | v${APP_VERSION}"
12+
13+
# config for Google Services
14+
#APP_GTM_TAG_ID
15+
#APP_GOOGLE_SITE_VERIFICATION_ID
16+
17+
# app metadata, for smart app banner (iOS) and native app banner (Android)
18+
# APP_APPLE_ITUNES_APP
19+
# APP_GOOGLE_RELATED_APPLICATION_ID
20+
21+
# override with custom fonts. supports Google Fonts (eg. APP_BODY_FONT_FAMILY=google:Roboto,system:Verdana - use Roboto and fallback to Verdana)
22+
#APP_BODY_FONT_FAMILY
23+
#APP_BODY_ALT_FONT_FAMILY
24+
25+
# public URL must be set for standalone applications
26+
#APP_PUBLIC_URL
27+
28+
# the default language that the app should load when the language couldn't be detected
29+
APP_DEFAULT_LANGUAGE=en
30+
31+
# a comma separated list of languages that are enabled (this only works for languages that are enabled in the app)
32+
APP_ENABLED_LANGUAGES=en,es

platforms/web/ini/templates/.webapp.preview.ini

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
defaultConfigSource =
33
; Allow any config
44
UNSAFE_allowAnyConfigSource = true
5-
; Use dev api
6-
APP_API_BASE_URL= https://cdn-dev.jwplayer.com

0 commit comments

Comments
 (0)