Make build environment public for merge
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 6s
Build and Test - Staging / build_and_push (pull_request) Successful in 42s
Build and Test - Staging / test (pull_request) Successful in 1s
Build and Test - Staging / deploy_staging (pull_request) Successful in 2s

This commit is contained in:
2025-07-09 04:00:57 -07:00
parent f7825ed740
commit 5b0829eac4
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ ARG BUILD_ENVIRONMENT
ARG PROJECT_VERSION
RUN echo "PUBLIC_REPO_VERSION_HASH=\"${REPO_VERSION_HASH}\" \n\
BUILD_ENVIRONMENT=\"${BUILD_ENVIRONMENT}\" \n\
PUBLIC_BUILD_ENVIRONMENT=\"${BUILD_ENVIRONMENT}\" \n\
PUBLIC_PROJECT_VERSION=\"${PROJECT_VERSION}\"" >> .env
RUN npm run build

View File

@@ -1,5 +1,5 @@
---
---
<footer class="flex justify-center items-center text-center">
{import.meta.env.BUILD_ENVIRONMENT || "development"} | {import.meta.env.PUBLIC_REPO_VERSION_HASH || "invalid"}@{import.meta.env.PUBLIC_PROJECT_VERSION || "0.0.0"}
{import.meta.env.PUBLIC_BUILD_ENVIRONMENT || "development"} | {import.meta.env.PUBLIC_REPO_VERSION_HASH || "invalid"}@{import.meta.env.PUBLIC_PROJECT_VERSION || "0.0.0"}
</footer>

2
src/env.d.ts vendored
View File

@@ -1,7 +1,7 @@
interface ImportMetaEnv {
readonly PUBLIC_REPO_VERSION_HASH: string;
readonly PUBLIC_PROJECT_VERSION: string;
readonly BUILD_ENVIRONMENT: string;
readonly PUBLIC_BUILD_ENVIRONMENT: string;
}
interface ImportMeta {