Skip to content

Commit

Permalink
fix: capture page
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Nov 22, 2023
1 parent d5c1ba8 commit 94654f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
NEXT_PUBLIC_API=https://dev-k8s.treetracker.org/query/v2
NEXT_PUBLIC_API_V2=https://dev-k8s.treetracker.org/query
NEXT_PUBLIC_STAKEHOLDER_API=https://dev-k8s.treetracker.org/stakeholder
NEXT_PUBLIC_TILE_SERVER_URL=https://{s}.treetracker.org/tiles/
NEXT_PUBLIC_TILE_SERVER_SUBDOMAINS=dev-k8s
NEXT_PUBLIC_TILE_SERVER_WEBMAP_API=https://dev-k8s.treetracker.org/webmap/
Expand Down
3 changes: 2 additions & 1 deletion src/models/apiPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { urlJoin } from 'url-join-ts';

const host = process.env.NEXT_PUBLIC_API || '';
const hostV2 = process.env.NEXT_PUBLIC_API_V2 || '';
const hostStakeholder = process.env.NEXT_PUBLIC_STAKEHOLDER_API || '';
const apiPaths = {
featuredTrees: urlJoin(host, 'trees/featured'),
featuredGrowers: urlJoin(host, 'growers/featured'),
Expand All @@ -15,7 +16,7 @@ const apiPaths = {
captures: (id = '') => urlJoin(host, `captures/${id}`),
growers: (id = '') => urlJoin(host, `growers/${id}`),
planters: (id = '') => urlJoin(host, `planters/${id}`),
stakeHolders: (id = '') => urlJoin(hostV2, `/stakeholder/stakeholders/${id}`),
stakeHolders: (id = '') => urlJoin(hostStakeholder, `/stakeholders/${id}`),
species: urlJoin(host, '/species'),
organization: (id = '') => urlJoin(host, `/organizations/${id}`),
wallets: (id = '') => urlJoin(host, `/wallets/${id}`),
Expand Down

0 comments on commit 94654f1

Please sign in to comment.