Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix env vars + update site metadata #9

Merged
merged 15 commits into from
Oct 28, 2024

Conversation

parketh
Copy link
Collaborator

@parketh parketh commented Oct 25, 2024

Summary

This PR:

  1. fixes env vars to be ingested at runtime by building the Docker image at startup (similar to op-bridge-ui approach)
  2. updates the site metadata
  3. applies Snapchain branding

Test plan

yarn dev

Right click, click Inspect -> Elements tab -> check metadata included under <Header> tab

For live deployments, the social media preview should look like this:

image

Post-deployment

We need to update babylon-deployment by pulling the latest Docker image, and rebuild this site.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are all the tests removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is legacy code copied from babylon's staking repo and not used in our code, so cleaned it up


build: npm run build

build-docker:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should still have build-docker

Dockerfile Outdated
Comment on lines 16 to 19
COPY package.json .
COPY package-lock.json .

RUN npm run build
RUN npm install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we need these 3 lines. they are duplicate with

COPY package.json package-lock.json ./
# Install dependencies with npm
RUN npm ci

above

@bap2pecs
Copy link
Member

now it looks like this:

image

@bap2pecs bap2pecs merged commit 3d96ccc into main Oct 28, 2024
1 check passed
@bap2pecs bap2pecs deleted the feat/clean-up-babylon-artifacts branch October 28, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants