Giter VIP home page Giter VIP logo

Comments (10)

kasperkristensen avatar kasperkristensen commented on September 12, 2024 1

@stelasido I see the issue now, and will open a PR to fix it. In the meantime, you can set the serve option in the admin plugin options to false:

options: {
  serve: false,
  // ...other options
}

And then the backend should be picked up correctly. Remember to also update your ADMIN_CORS to match the custom host you have set for the admin development server.

from medusa.

olivermrbl avatar olivermrbl commented on September 12, 2024 1

@stelasido, can you give the following snapshot a try and let us know if the issue is resolved:

yarn add @medusajs/[email protected]

from medusa.

olivermrbl avatar olivermrbl commented on September 12, 2024 1

@stelasido, any luck? We have a release later today and would like to include it if possible.

from medusa.

stelasido avatar stelasido commented on September 12, 2024

To open the login REMOTE_IP:7001, I need to add exactly that, all other envs, doesn't matter:
image
Then I see that:
image

As you can see, it requests to localhost:9000 from origin REMOTE_IP:7001, there is no logic for that

from medusa.

stelasido avatar stelasido commented on September 12, 2024

U can simply test, by creating an EC2 instance for less than an hour, allow 7001, 7000, 8000, 9000 ports and use npx create-medusa-app@latest

from medusa.

kasperkristensen avatar kasperkristensen commented on September 12, 2024

@stelasido you need to set the backend param in the admin plugin options, the default value is http://localhost:9000, which is wrong in your case.

options: {
  autoRebuild: true,
  backend: <here>,
  develop: {
    open: true,
    port: "0.0.0.0"
  }
}

from medusa.

stelasido avatar stelasido commented on September 12, 2024

@stelasido you need to set the backend param in the admin plugin options, the default value is http://localhost:9000, which is wrong in your case.

options: {
  autoRebuild: true,
  backend: <here>,
  develop: {
    open: true,
    port: "0.0.0.0"
  }
}

Still the same. Also, when I run it, it uses the private IP, but not the public/elastic IP
image
This is with 0.0.0.0:
image

This is without, any develop.host:
Uploading image.png…

from medusa.

kasperkristensen avatar kasperkristensen commented on September 12, 2024

@stelasido

What are you setting the backend prop to? And is the dashboard not making requests to that URL?

from medusa.

stelasido avatar stelasido commented on September 12, 2024

@kasperkristensen without host: 0.0.0.0:
image

image
ERR_CONNECTION_REFUSED
with host: '0.0.0.0':
image
I can access login, but there is still problem. Now, not bloked request, but:
image
This is after npm build, in case of some static cache.
Also REMOTE_URL:9000 works fine in all cases, I can access it via browser Cannot GET / - which means the API works

from medusa.

stelasido avatar stelasido commented on September 12, 2024

hi, yes. Thx, will close the case.

from medusa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.