chore: prepare production release

This commit is contained in:
jinhojang6 2024-11-04 10:36:51 +09:00
parent a2c7707fd9
commit e3b42b6bb8
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
4 changed files with 19 additions and 7 deletions

View File

@ -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

View File

@ -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,

View File

@ -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>

View File

@ -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>