Comments (10)
@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.
@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.
@stelasido, any luck? We have a release later today and would like to include it if possible.
from medusa.
To open the login REMOTE_IP:7001, I need to add exactly that, all other envs, doesn't matter:
Then I see that:
As you can see, it requests to localhost:9000 from origin REMOTE_IP:7001, there is no logic for that
from medusa.
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.
@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 you need to set the
backend
param in the admin plugin options, the default value ishttp://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
This is with 0.0.0.0:
This is without, any develop.host
:
from medusa.
What are you setting the backend
prop to? And is the dashboard not making requests to that URL?
from medusa.
@kasperkristensen without host: 0.0.0.0:
ERR_CONNECTION_REFUSED
with host: '0.0.0.0'
:
I can access login, but there is still problem. Now, not bloked request, but:
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.
hi, yes. Thx, will close the case.
from medusa.
Related Issues (20)
- Issue in Medusa V2 Learning Resources - Unit Price cannot be added during Cart Creation but document says so HOT 3
- Migration failes with exit code 0 HOT 4
- Duplicate customers HOT 2
- Stripe Payments not working HOT 4
- Malformed syntax. 2.0.6-preview HOT 4
- Server running in worker mode doesn't have health HOT 2
- Stripe payments - 'intent' must be a string but got undefined HOT 1
- bug: Promotions - Buy X get Y HOT 12
- Medusa Learning Resources: Issue in B2B Recipe - Medusa Learning Resources
- Incorrect doc link
- ui package breakpoint inconsistency
- Product Tag not saving when edit product. HOT 1
- Error starting server with scheduled jobs due to a new change in bullmq HOT 3
- Medusa v2 Docs: Issue in 3.11. Workflows - Medusa v2 Docs HOT 1
- Omnibus directive compliance
- Docs(Code Issue): Code Issue in /deployments/server/deploying-on-heroku HOT 1
- admin dashboard will be opened in your default browser
- Exposing sensitive logged-in customer data in persisted cart after session expiry
- Add a note about trailing backslashes HOT 6
- Custom endpoint does not work and only works after saving a file that restarting the server. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.