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

You need to enable JavaScript to run this app. #81

Open
cpiekacz opened this issue Nov 26, 2022 · 5 comments
Open

You need to enable JavaScript to run this app. #81

cpiekacz opened this issue Nov 26, 2022 · 5 comments

Comments

@cpiekacz
Copy link

When dashboard is set behind the reverse proxy I get the following message when I visit the page:

<body class="vsc-initialized"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body>

Should I change anything with the proxy config to make it work?

@millerjs2
Copy link

I'm seeing the same behavior, and I'm hitting the container directly over port 8080 - also in docker. I had used a pervious version and it worked fine with this same configuration, I don't know what changed.

@userbradley
Copy link

I think I may have solved this issue...

In the package.json you need to add the below

Under the base {} add

  "proxy" : "http://127.0.0.1:8080",
  "homepage": ".",

The for the scripts update http-server:app

    "http-server:app": "http-server ./build --proxy http://127.0.0.1:8080 --port 3000",

This seems to have solved it.

You will need to build the docker image your self locally.

Using the below, I was able to test it and it worked

docker build -t test:1 .

Then running the app

 docker run -v $(pwd)/data:/data -p 8080:8080 test:1

image

@biboc
Copy link

biboc commented Aug 23, 2024

@userbradley Could you make a PR?

@userbradley
Copy link

@biboc why can't you?

@biboc
Copy link

biboc commented Aug 23, 2024

No time for the moment but that would help people using it with docker :)

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

No branches or pull requests

4 participants