mirror of
https://github.com/acid-info/logos-ordinals-dashboard.git
synced 2025-01-11 14:14:31 +00:00
chore: prepare production release
This commit is contained in:
parent
a2c7707fd9
commit
e3b42b6bb8
10
README.md
10
README.md
@ -18,7 +18,15 @@ $ git clone https://github.com/acid-info/logos-ordinals-dashboard.git
|
||||
$ yarn install
|
||||
```
|
||||
|
||||
3. Start the development server:
|
||||
3. Create a .env file
|
||||
|
||||
`NEXT_PUBLIC_API_MODE=development` for development
|
||||
|
||||
```bash
|
||||
NEXT_PUBLIC_API_MODE=development
|
||||
```
|
||||
|
||||
4. Start the development server:
|
||||
|
||||
```bash
|
||||
$ yarn dev
|
||||
|
@ -1,6 +1,9 @@
|
||||
import axios, { AxiosError } from 'axios'
|
||||
|
||||
export const API_BASE = 'https://exit-test-567058b69f45.herokuapp.com/api'
|
||||
export const API_BASE =
|
||||
process.env.NEXT_PUBLIC_API_MODE === 'development'
|
||||
? 'https://exit-test-567058b69f45.herokuapp.com/api'
|
||||
: 'https://exit.logos.co/api'
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: API_BASE,
|
||||
|
@ -60,8 +60,9 @@ const ProgressBar: React.FC<ProgressBarProps> = ({
|
||||
<TimeRemaining>
|
||||
<Label>Time Remaining</Label>
|
||||
<Value color="var(--orange)" backgroundColor="var(--dark-orange)">
|
||||
{epochs &&
|
||||
`${numberWithCommas(epochs[0]?.blocks_remaining)} blocks`}
|
||||
{epochs && epochs[0]?.blocks_remaining
|
||||
? `${numberWithCommas(epochs[0]?.blocks_remaining)} blocks`
|
||||
: `N/A`}
|
||||
</Value>
|
||||
</TimeRemaining>
|
||||
<PointsRow>
|
||||
|
@ -33,8 +33,8 @@ const Header: React.FC<NavbarProps> = () => {
|
||||
<span>Gitbook</span>
|
||||
</GitbookButton>
|
||||
</Link>
|
||||
|
||||
{process.env.NEXT_PUBLIC_API_MODE === 'development' ? (
|
||||
<WalletConnect />
|
||||
{/* {process.env.NEXT_PUBLIC_API_MODE === 'development' ? (
|
||||
<WalletConnect />
|
||||
) : (
|
||||
<Link
|
||||
@ -47,7 +47,7 @@ const Header: React.FC<NavbarProps> = () => {
|
||||
<Icon src="/icons/discord-white.svg" alt="Discord" />
|
||||
</SocialButton>
|
||||
</Link>
|
||||
)}
|
||||
)} */}
|
||||
<HamburguerMenu />
|
||||
</UserActions>
|
||||
</Container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user