@hubspot/cms-dev-server 0.13.7 → 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.
- package/dist/run.js +9 -3
- 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.
|
|
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;
|
|
@@ -1825,6 +1825,7 @@ var renderComponentForPlaceholder = (indexForThisRender, localRenderPlaceholder,
|
|
|
1825
1825
|
hsProjectJsonProjectName,
|
|
1826
1826
|
webRootProjectComponent
|
|
1827
1827
|
);
|
|
1828
|
+
const localRenderPlaceholderProps = localRenderPlaceholder.json.props;
|
|
1828
1829
|
const [
|
|
1829
1830
|
__projectIdentifier,
|
|
1830
1831
|
projectFolder,
|
|
@@ -1859,7 +1860,7 @@ var renderComponentForPlaceholder = (indexForThisRender, localRenderPlaceholder,
|
|
|
1859
1860
|
return renderComponentForPlaceholderPartial(
|
|
1860
1861
|
viteServer,
|
|
1861
1862
|
resolvedPath,
|
|
1862
|
-
|
|
1863
|
+
localRenderPlaceholderProps,
|
|
1863
1864
|
pageUrl,
|
|
1864
1865
|
basePath,
|
|
1865
1866
|
environmentConfig,
|
|
@@ -2192,7 +2193,12 @@ function proxyPageResourceRedirect(req, res, next) {
|
|
|
2192
2193
|
|
|
2193
2194
|
// src/routes/homeRouteHandler.tsx
|
|
2194
2195
|
import { Fragment, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2195
|
-
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
|
+
}
|
|
2196
2202
|
sendTrackingRequest("view-home-route");
|
|
2197
2203
|
const { webRoot: webRoot2, storybookEnabled, devServerPort } = request2.app.locals;
|
|
2198
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.
|
|
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.
|
|
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": "
|
|
104
|
+
"gitHead": "2309a8ad3e5f58b41d1a307df2e18cb68c299efd"
|
|
105
105
|
}
|