Skip to content

Conversation

VsevolodX
Copy link
Member

No description provided.

Copy link

netlify bot commented Aug 8, 2025

Deploy Preview for mat3ra-materials-designer ready!

Name Link
🔨 Latest commit 64bd250
🔍 Latest deploy log https://app.netlify.com/projects/mat3ra-materials-designer/deploys/68abcf723fed92000808197b
😎 Deploy Preview https://deploy-preview-262--mat3ra-materials-designer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

render() {
return (
<JupyterLiteSession
originURL="https://deploy-preview-56--mat3ra-jupyterlite.netlify.app"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe get this from a settings file with the following logic: if development profile, use https://deploy-preview-{JupyterLitePullRequestNumber}--mat3ra-jupyterlite.netlify.app. So that you only need to update:

isDevelopment: true, JupyterLitePullRequestNumber: 56

"scripts": {
"test": "CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress open",
"test:headless": "export TAGS=${TAGS:-'not @ignore and not @notebook_healthcheck'}; CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress run -e TAGS=\"$TAGS\"",
"test:headless": "export TAGS=${TAGS:-'not @ignore'}; CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress run -e TAGS=\"$TAGS\"",
Copy link
Member

Choose a reason for hiding this comment

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

USE_JUPYTERLITE_DEV_URL=false

Copy link
Member

Choose a reason for hiding this comment

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

inside settings.js

const JUPYTERLITE_DEVELOPMENT_URL = "";
const JUPYTERLITE_PRODUCTION_URL = "";
const URL = env('USE_JUPYTERLITE_DEV_URL') ? DEV_URL : PROD_URL

dist/settings.js Outdated
export const theme = DarkMaterialUITheme;
// get from https://github.com/Exabyte-io/jupyterlite/pull/N
const JUPYTERLITE_DEVELOPMENT_URL = "https://deploy-preview-56--mat3ra-jupyterlite.netlify.app";
export const ORIGIN_URL = import.meta.env.VITE_USE_JUPYTERLITE_DEV_URL
Copy link
Member

Choose a reason for hiding this comment

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

Should be process.env.USE_JUPYTERLITE_DEV_URL

dist/settings.js Outdated
export const theme = DarkMaterialUITheme;
// get from https://github.com/Exabyte-io/jupyterlite/pull/N
const JUPYTERLITE_DEVELOPMENT_URL = "https://deploy-preview-56--mat3ra-jupyterlite.netlify.app";
export const ORIGIN_URL = import.meta.env.VITE_USE_JUPYTERLITE_DEV_URL
Copy link
Member

Choose a reason for hiding this comment

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

JUPYTERLITE_ORIGIN_URL

@VsevolodX VsevolodX merged commit 46d5643 into dev Aug 25, 2025
6 checks passed
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.

2 participants