Skip to content

Conversation

@adamblake
Copy link
Contributor

The application currently loads the API URL by trying a PageConfig option and then falling back to a localhost hardcoded URL. This yarn script uses jq to inject the environment variable API_URL into the built app's config at dist/jupyter-lite.json.

Additionally, a yarn script build:all:prod tacks this script on at the end so that you can run API_URL=... jlpm build:all:prod

The application currently loads the API URL by trying a PageConfig
option and then falling back to a localhost hardcoded URL. This
yarn script uses `jq` to inject the environment variable API_URL
into the built app's config at `dist/jupyter-lite.json`.

Additionally, a yarn script `build:all:prod` tacks this script on
at the end so that you can run API_URL=... jlpm build:all:prod
@adamblake
Copy link
Contributor Author

@agriyakhetarpal what do you think of this as the way to solve #69? The deployment can just be modified to use an env var with the build script

@agriyakhetarpal agriyakhetarpal added the maintenance This PR performs maintenance for the repository label Aug 1, 2025
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

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

Hi @adamblake, this approach sounds good to me. Could you please also update the lite matrix of jobs in build.yml so that it calls build:all:prod for the production case? Thank you!

@agriyakhetarpal agriyakhetarpal self-assigned this Sep 9, 2025
@agriyakhetarpal agriyakhetarpal deleted the feat/patch-url branch October 2, 2025 00:20
@agriyakhetarpal agriyakhetarpal restored the feat/patch-url branch October 2, 2025 00:21
@agriyakhetarpal
Copy link
Member

(Deleted the wrong branch, sorry – I was meaning to pull this locally)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance This PR performs maintenance for the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants