Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class BaseJupyterLiteSessionComponent extends React.Component {
}
}
render() {
return (_jsx(JupyterLiteSession, { defaultNotebookPath: this.DEFAULT_NOTEBOOK_PATH, messageHandlerConfigs: this.messageHandlerConfigs, ref: this.jupyterLiteSessionRef }));
return (_jsx(JupyterLiteSession, { originURL: "https://deploy-preview-56--mat3ra-jupyterlite.netlify.app", defaultNotebookPath: this.DEFAULT_NOTEBOOK_PATH, messageHandlerConfigs: this.messageHandlerConfigs, ref: this.jupyterLiteSessionRef }));
}
}
export default BaseJupyterLiteSessionComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class BaseJupyterLiteSessionComponent<P = never, S = never> extends React.Compon
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

defaultNotebookPath={this.DEFAULT_NOTEBOOK_PATH}
messageHandlerConfigs={this.messageHandlerConfigs}
ref={this.jupyterLiteSessionRef}
Expand Down
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"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

"test:healthcheck": "TAGS='not @ignore and @notebook_healthcheck' npm run test:headless",
"lint": "npx eslint cypress && prettier --write cypress"
},
Expand Down
Loading