-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: FRON-33 shared secret, bearer token (#33)
* feat: FRON-33 shared secret used in fetch calls
- Loading branch information
1 parent
49396dd
commit 4a97d5c
Showing
7 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# DEVELOPMENT TOOLS | ||
# Ideally, don't add them to production deployment envs | ||
# Change to true if we want to log data | ||
NEXT_PUBLIC_SHOW_LOGGER="false" | ||
# NEXT_PUBLIC_SHOW_LOGGER="false" | ||
NEXT_PUBLIC_BEARER_TOKEN="my-secret-token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
const Footer = () => { | ||
return <div className='container min-h-24'>Footer</div>; | ||
}; | ||
import { fetchAPI } from '@/lib/helpers'; | ||
|
||
async function Footer() { | ||
const serverStatus = await fetchAPI('health', true); | ||
|
||
return ( | ||
<div className='container min-h-24'> | ||
<p>Footer</p> | ||
<p> | ||
<b>Server Status:</b> {serverStatus.status || 'Offline'} | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export { Footer }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters