mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add build-time ENV to explicitly enable Open Telemetry * generate svg-sprite before next build * move envs.js to assets folder * move favicon bundle to assets folder * move external configs to configs folder * fix envs validator
24 lines
636 B
Bash
Executable File
24 lines
636 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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'
|
|
|
|
yarn svg:build-sprite
|
|
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) \
|
|
-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 |