Skip to content

Commit e625680

Browse files
committed
refactor: source depict api from env var
1 parent 0c9a128 commit e625680

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ AUTH0_ENABLE_TELEMETRY=false
1414

1515
NEXT_PUBLIC_DATA_MANAGER_API_SERVER=$DATA_MANAGER_API_SERVER
1616
NEXT_PUBLIC_ACCOUNT_SERVER_API_SERVER=$ACCOUNT_SERVER_API_SERVER
17+
NEXT_PUBLIC_DEPICT_API_SERVER=$DEPICT_API_SERVER
1718

1819
# Keycloak Required Roles
1920
# Used to protect routes that consume the DM-API

.env.local.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ DANGEROUS__DISABLE_SSL_CERT_CHECK_IN_API_PROXY=0
1717
# Where the APIs are located
1818
DATA_MANAGER_API_SERVER='https://squonk.informaticsmatters.org/data-manager-api'
1919
ACCOUNT_SERVER_API_SERVER='https://squonk.informaticsmatters.org/account-server-api'
20+
DEPICT_API_SERVER='https://squonk.informaticsmatters.org/fragnet-depict-api/fragnet-depict/moldepict'
2021

2122
# Application secret
2223
# Generate with e.g. `node -e "console.log(crypto.randomBytes(32).toString('hex'))"`

src/features/SDFViewer/SDFViewerData.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ const getCards = (molecules: Must<Molecule>[], propsToHide: string[] = []) => {
1818
.filter((property) => !propsToHide.includes(property.name));
1919
return (
2020
<MolCard
21-
depictParams={{
22-
depictURL:
23-
"https://squonk.informaticsmatters.org/fragnet-depict-api/fragnet-depict/moldepict",
24-
}}
21+
depictParams={{ depictURL: process.env.NEXT_PUBLIC_DEPICT_API_SERVER ?? "" }}
2522
key={molecule.id}
2623
molFile={molecule.molFile}
2724
variant="molFile"

0 commit comments

Comments
 (0)