MED-105: create analysis results page
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import Medusa from "@medusajs/js-sdk"
|
||||
import Medusa from "@medusajs/js-sdk";
|
||||
|
||||
// Defaults to standard port for Medusa server
|
||||
let MEDUSA_BACKEND_URL = "http://localhost:9000"
|
||||
let MEDUSA_BACKEND_URL = "http://localhost:9000";
|
||||
|
||||
if (process.env.MEDUSA_BACKEND_URL) {
|
||||
MEDUSA_BACKEND_URL = process.env.MEDUSA_BACKEND_URL
|
||||
MEDUSA_BACKEND_URL = process.env.MEDUSA_BACKEND_URL;
|
||||
}
|
||||
|
||||
console.log("MEDUSA_BACKEND_URL", MEDUSA_BACKEND_URL);
|
||||
export const sdk = new Medusa({
|
||||
baseUrl: MEDUSA_BACKEND_URL,
|
||||
debug: process.env.NODE_ENV === "development",
|
||||
publishableKey: process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY,
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user