@hubspot/cms-dev-server 0.13.8 → 0.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.
Files changed (2) hide show
  1. package/dist/run.js +7 -2
  2. package/package.json +3 -3
package/dist/run.js CHANGED
@@ -954,7 +954,7 @@ function trackUsage(action) {
954
954
  eventName: EVENT_NAME,
955
955
  action,
956
956
  nodeVersion: getNodeVersionData(),
957
- version: "0.13.8",
957
+ version: "0.13.9",
958
958
  os: getPlatform()
959
959
  };
960
960
  const uri = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -2193,7 +2193,12 @@ function proxyPageResourceRedirect(req, res, next) {
2193
2193
 
2194
2194
  // src/routes/homeRouteHandler.tsx
2195
2195
  import { Fragment, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
2196
- var homeRouteHandler = async (request2, response) => {
2196
+ var homeRouteHandler = async (request2, response, next) => {
2197
+ const domainToProxy = getSubDomainFromValidLocalDomain(request2.hostname);
2198
+ if (domainToProxy) {
2199
+ next();
2200
+ return;
2201
+ }
2197
2202
  sendTrackingRequest("view-home-route");
2198
2203
  const { webRoot: webRoot2, storybookEnabled, devServerPort } = request2.app.locals;
2199
2204
  const { partialNames } = findAllPartialsInRoot(webRoot2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@hubspot/cli-lib": "^3.0.12",
28
- "@hubspot/cms-components": "^0.13.8",
28
+ "@hubspot/cms-components": "^0.13.9",
29
29
  "@originjs/vite-plugin-commonjs": "^1.0.3",
30
30
  "@storybook/addon-actions": "7.0.7",
31
31
  "@storybook/addon-essentials": "7.0.7",
@@ -101,5 +101,5 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "cfca2e8d8e549fe75fc74636982bb3b938f1b203"
104
+ "gitHead": "2309a8ad3e5f58b41d1a307df2e18cb68c299efd"
105
105
  }