Skip to content

Commit

Permalink
moved geonames api key to env file
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Unit committed Nov 10, 2023
1 parent de68e3f commit 7b1beeb
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion apps/ohsmart/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ VITE_TARGET_1_KEY_URL = ''
## OIDC config
VITE_OIDC_AUTHORITY = ''
VITE_OIDC_CLIENT_ID = ''
VITE_OIDC_SCOPE = 'openid profile'
VITE_OIDC_SCOPE = 'openid profile'

## API keys
VITE_GEONAMES_API_KEY = ''
2 changes: 1 addition & 1 deletion apps/ohsmart/src/config/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const form: FormConfig = {
],
submitKey: import.meta.env.VITE_PACKAGING_KEY, // only if we dont use keycloak
skipValidation: import.meta.env.DEV,
geonamesApiKey: 'dans_deposit_webapp',
geonamesApiKey: import.meta.env.VITE_GEONAMES_API_KEY,
};

export default form;
3 changes: 3 additions & 0 deletions apps/rda/.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ VITE_TARGET_1_KEY_URL = ''
VITE_OIDC_AUTHORITY = ''
VITE_OIDC_CLIENT_ID = ''
VITE_OIDC_SCOPE = 'openid profile'

## API keys
VITE_GEONAMES_API_KEY = ''
2 changes: 1 addition & 1 deletion apps/rda/src/config/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const form: FormConfig = {
],
submitKey: import.meta.env.VITE_PACKAGING_KEY, // still needed??
skipValidation: import.meta.env.DEV,
geonamesApiKey: 'dans_deposit_webapp',
geonamesApiKey: import.meta.env.VITE_GEONAMES_API_KEY,
};

export default form;
6 changes: 3 additions & 3 deletions apps/swh/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
## Values are exposed (as strings) in the app as: import.meta.env.VITE_VALUE_NAME

## Eleasticsearch api endpoint
VITE_ELASTICSEARCH_API_ENDPOINT = ''

## DANS packaging key
VITE_PACKAGING_KEY = ''

Expand All @@ -21,3 +18,6 @@ VITE_TARGET_2_KEY_URL = ''
VITE_OIDC_AUTHORITY = ''
VITE_OIDC_CLIENT_ID = ''
VITE_OIDC_SCOPE = 'openid profile'

## API keys
VITE_GEONAMES_API_KEY = ''
2 changes: 1 addition & 1 deletion apps/swh/src/config/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const form: FormConfig = {
],
submitKey: import.meta.env.VITE_PACKAGING_KEY, // still needed??
skipValidation: import.meta.env.DEV,
geonamesApiKey: 'dans_deposit_webapp',
geonamesApiKey: import.meta.env.VITE_GEONAMES_API_KEY,
};

export default form;
Binary file added apps/swh/src/config/images/logo-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/swh/src/config/pages/home.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logo from '../images/logo.png';
import logo from '../images/logo-black.png';
import type { Page } from '@dans-framework/pages';

const page: Page = {
Expand Down

0 comments on commit 7b1beeb

Please sign in to comment.