@acmekit/admin-bundler 2.13.8 → 2.13.9

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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AdminOptions } from '@acmekit/types';
2
2
  import { IRouter } from 'express';
3
3
 
4
- type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "storefrontUrl"> & {
4
+ type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "frontendUrl" | "storefrontUrl"> & {
5
5
  outDir: string;
6
6
  sources?: string[];
7
7
  plugins?: string[];
package/dist/index.js CHANGED
@@ -1315,7 +1315,7 @@ async function getViteConfig(options) {
1315
1315
  const allowedHosts = getAllowedHosts();
1316
1316
  const root = import_path.default.resolve(process.cwd(), ".acmekit/client");
1317
1317
  const backendUrl = options.backendUrl ?? "";
1318
- const storefrontUrl = options.storefrontUrl ?? "";
1318
+ const frontendUrl = options.frontendUrl ?? options.storefrontUrl ?? "";
1319
1319
  const authType = process.env.ADMIN_AUTH_TYPE ?? void 0;
1320
1320
  const jwtTokenStorageKey = process.env.ADMIN_JWT_TOKEN_STORAGE_KEY ?? void 0;
1321
1321
  const baseConfig = {
@@ -1344,7 +1344,7 @@ async function getViteConfig(options) {
1344
1344
  __BACKEND_URL__: JSON.stringify(backendUrl),
1345
1345
  __AUTH_TYPE__: JSON.stringify(authType),
1346
1346
  __JWT_TOKEN_STORAGE_KEY__: JSON.stringify(jwtTokenStorageKey),
1347
- __STOREFRONT_URL__: JSON.stringify(storefrontUrl)
1347
+ __FRONTEND_URL__: JSON.stringify(frontendUrl)
1348
1348
  },
1349
1349
  server: {
1350
1350
  fs: {
@@ -1403,7 +1403,7 @@ async function getViteConfig(options) {
1403
1403
  return finalConfig;
1404
1404
  }
1405
1405
  function getAllowedHosts() {
1406
- const hosts = process.env.__MEDUSA_ADMIN_ADDITIONAL_ALLOWED_HOSTS;
1406
+ const hosts = process.env.__ACMEKIT_ADMIN_ADDITIONAL_ALLOWED_HOSTS ?? process.env.__MEDUSA_ADMIN_ADDITIONAL_ALLOWED_HOSTS;
1407
1407
  if (!hosts) {
1408
1408
  return void 0;
1409
1409
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/admin-bundler",
3
- "version": "2.13.8",
3
+ "version": "2.13.9",
4
4
  "description": "Bundler for the AcmeKit admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@acmekit.com>",
6
6
  "scripts": {
@@ -18,12 +18,12 @@
18
18
  "package.json"
19
19
  ],
20
20
  "devDependencies": {
21
- "@acmekit/types": "2.13.8"
21
+ "@acmekit/types": "2.13.9"
22
22
  },
23
23
  "dependencies": {
24
- "@acmekit/admin-shared": "2.13.8",
25
- "@acmekit/admin-vite-plugin": "2.13.8",
26
- "@acmekit/dashboard": "2.13.8",
24
+ "@acmekit/admin-shared": "2.13.9",
25
+ "@acmekit/admin-vite-plugin": "2.13.9",
26
+ "@acmekit/dashboard": "2.13.9",
27
27
  "@vitejs/plugin-react": "^4.2.1",
28
28
  "autoprefixer": "^10.4.19",
29
29
  "compression": "^1.8.0",