@medusajs/admin-bundler 2.12.4-snapshot-20251224023152 → 2.12.4-snapshot-20251226024319

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1317,6 +1317,8 @@ async function getViteConfig(options) {
1317
1317
  const storefrontUrl = options.storefrontUrl ?? "";
1318
1318
  const authType = process.env.ADMIN_AUTH_TYPE ?? void 0;
1319
1319
  const jwtTokenStorageKey = process.env.ADMIN_JWT_TOKEN_STORAGE_KEY ?? void 0;
1320
+ const cloudAuthEnabled = process.env.EXECUTION_CONTEXT === "medusa-cloud" && process.env.MEDUSA_CLOUD_OAUTH_DISABLED !== "true";
1321
+ console.log("cloudAuthEnabled", cloudAuthEnabled);
1320
1322
  const baseConfig = {
1321
1323
  root,
1322
1324
  base: options.path,
@@ -1343,7 +1345,8 @@ async function getViteConfig(options) {
1343
1345
  __BACKEND_URL__: JSON.stringify(backendUrl),
1344
1346
  __AUTH_TYPE__: JSON.stringify(authType),
1345
1347
  __JWT_TOKEN_STORAGE_KEY__: JSON.stringify(jwtTokenStorageKey),
1346
- __STOREFRONT_URL__: JSON.stringify(storefrontUrl)
1348
+ __STOREFRONT_URL__: JSON.stringify(storefrontUrl),
1349
+ __MEDUSA_CLOUD_AUTH__: JSON.stringify(cloudAuthEnabled)
1347
1350
  },
1348
1351
  server: {
1349
1352
  fs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/admin-bundler",
3
- "version": "2.12.4-snapshot-20251224023152",
3
+ "version": "2.12.4-snapshot-20251226024319",
4
4
  "description": "Bundler for the Medusa admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@medusajs.com>",
6
6
  "scripts": {
@@ -18,12 +18,12 @@
18
18
  "package.json"
19
19
  ],
20
20
  "devDependencies": {
21
- "@medusajs/types": "2.12.4-snapshot-20251224023152"
21
+ "@medusajs/types": "2.12.4-snapshot-20251226024319"
22
22
  },
23
23
  "dependencies": {
24
- "@medusajs/admin-shared": "2.12.4-snapshot-20251224023152",
25
- "@medusajs/admin-vite-plugin": "2.12.4-snapshot-20251224023152",
26
- "@medusajs/dashboard": "2.12.4-snapshot-20251224023152",
24
+ "@medusajs/admin-shared": "2.12.4-snapshot-20251226024319",
25
+ "@medusajs/admin-vite-plugin": "2.12.4-snapshot-20251226024319",
26
+ "@medusajs/dashboard": "2.12.4-snapshot-20251226024319",
27
27
  "@vitejs/plugin-react": "^4.2.1",
28
28
  "autoprefixer": "^10.4.19",
29
29
  "compression": "^1.8.0",