mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
- LatestBlocks: full-width layout instead of fixed 280px sidebar - Stats: 4-column grid on desktop, 2-column on mobile - NetworkOverview: fallback known L1 chains when P-chain API unreachable - NetworkOverview: expose isError from useCurrentValidators - P-chain hooks: add retry:2 for resilience - UserProfile: use address_hash instead of id for display - Replace middleware.ts with proxy.ts (unused in production Docker) - Add toolkit/chakra/separator re-export - tsconfig: jsx react-jsx, formatting cleanup - dev.sh: disable turbopack (stability)
30 lines
846 B
Bash
Executable File
30 lines
846 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# remove previous assets
|
|
rm -rf ./public/assets/configs
|
|
rm -rf ./public/assets/multichain
|
|
rm -rf ./public/assets/envs.js
|
|
|
|
# download assets for the running instance
|
|
dotenv \
|
|
-e .env.development.local \
|
|
-e .env.local \
|
|
-e .env.development \
|
|
-e .env \
|
|
-- bash -c './deploy/scripts/download_assets.sh ./public/assets/configs'
|
|
|
|
source ./deploy/scripts/build_sprite.sh
|
|
echo ""
|
|
|
|
# generate envs.js file and run the app
|
|
dotenv \
|
|
-v NEXT_PUBLIC_GIT_COMMIT_SHA=$(git rev-parse --short HEAD) \
|
|
-v NEXT_PUBLIC_GIT_TAG=$(git describe --tags --abbrev=0) \
|
|
-v NEXT_PUBLIC_ICON_SPRITE_HASH="${NEXT_PUBLIC_ICON_SPRITE_HASH}" \
|
|
-e .env.secrets \
|
|
-e .env.development.local \
|
|
-e .env.local \
|
|
-e .env.development \
|
|
-e .env \
|
|
-- bash -c './deploy/scripts/make_envs_script.sh && next dev -p $NEXT_PUBLIC_APP_PORT' |
|
|
pino-pretty |