Skip to content

Commit

Permalink
react-app, deploy: Add GA ID to config and deployment values
Browse files Browse the repository at this point in the history
  • Loading branch information
hochiw committed Aug 2, 2022
1 parent 03b7608 commit e3f0b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/likedao/templates/react-app.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ data:
endpoint: {{ .Values.reactApp.graphqlEndpoint | quote }},
},
authEndpoint: {{ .Values.reactApp.authEndpoint | quote }},
{{ if .Values.reactApp.googleAnalyticsId }}
googleAnalyticsId: {{ .Values.reactApp.googleAnalyticsId | quote }},
{{ else }}
googleAnalyticsId: null,
{{ end }}
chainLinks: [
{{- range .Values.reactApp.chainLinks }}
{{- with .}}
Expand Down
2 changes: 2 additions & 0 deletions react-app/src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface IConfig {
endpoint: string;
};
authEndpoint: string;
googleAnalyticsId: string | null;
chainLinks: ChainLink[];
footerLinks: FooterLinks;
}
Expand Down Expand Up @@ -74,6 +75,7 @@ const defaultConfig: IConfig = {
},
authEndpoint: "http://localhost:8080/auth",
chainLinks: [],
googleAnalyticsId: null,
footerLinks: {
githubLink: "https://github.com/likecoin/likedao",
tokenLinks: [
Expand Down

0 comments on commit e3f0b7f

Please sign in to comment.