diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 9f582fc..c19c26b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -31,6 +31,8 @@ jobs: cache: "pnpm" - name: Install dependencies run: pnpm install + - name: Set env + run: echo "{VITE_XDI_REPO_LOCATION}={$DATA_REPO}" >> $GITHUB_ENV - name: Run build run: pnpm run build --base=/webxdiviewer/ - name: Uploading production-ready build files diff --git a/src/components/WelcomePage.tsx b/src/components/WelcomePage.tsx index ce52971..032559a 100644 --- a/src/components/WelcomePage.tsx +++ b/src/components/WelcomePage.tsx @@ -1,7 +1,13 @@ import { Link } from "react-router-dom"; import { Container, Typography, Box } from "@mui/material"; +const env_repo_location = import.meta.env.VITE_SOME_KEY; + function WelcomePage() { + + const repo_location = env_repo_location ?? "examplerepo/xdifiles" + + console.log(repo_location) return ( @@ -16,9 +22,9 @@ function WelcomePage() { stored in a github repository. As part of the website build process, the XDI files are pulled in and indexed, giving simple static website to display open data. The website is currently pointing as a fork of - the data in the{" "} - - XASDataLibrary + the data in{" "} + + {repo_location} .