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

Use staticPath var to fetch unsupportedRedirect.js #6923

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

eradman
Copy link
Collaborator

@eradman eradman commented Apr 23, 2024

What type of PR is this?

  • Bug Fix

Description

Use Webpack configuration for locating this asset in the same way that client/app/index.html does.

How is this tested?

  • Manually

(1) Enable MULTI_ORG in .env

REDASH_MULTI_ORG=true

(2) Update the slug for the default organization

$ psql -h localhost -p 15432 -U postgres
postgres=# UPDATE organizations SET slug ='redash';

(3) change baseHref and staticPath in webpack.config.js

(4) run make build

(5) verify that accessing the site at http://localhost:5001/redash/ works

Use Webpack configuration for locating this asset in the same way that
client/app/index.html does.

This code path is when REDASH_MULTI_ORG=true.
Copy link
Member

@justinclift justinclift left a comment

Choose a reason for hiding this comment

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

Good idea. 😄

@justinclift justinclift enabled auto-merge (squash) April 24, 2024 09:40
@justinclift
Copy link
Member

There's a bit of a queue of CI tests running at the moment.

Once the ARM64 MSSQL ODBC one goes in, we can do this one next. 😄

@justinclift justinclift merged commit 84e6d3c into getredash:master Apr 24, 2024
11 checks passed
@justinclift
Copy link
Member

@eradman Merged. Looks like you're working on getting the MULTI_ORG stuff to be reliable? 😄

@eradman eradman deleted the multi-org branch April 24, 2024 12:28
@eradman
Copy link
Collaborator Author

eradman commented Apr 24, 2024

Yes, it turns out that besides the multi-tenet hosting, MULTI_ORG feature is very useful when setting up an instance of behind a web server with a custom URL, such as /redash/.

@justinclift
Copy link
Member

Yeah, I can see how that'd be super useful for integrating into existing web interface setups. 😄

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