Skip to content

Commit 81fa966

Browse files
committed
v1.30.0
1 parent 11a60b3 commit 81fa966

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

dist/public/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/server/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vp",
3-
"version": "1.29.0",
3+
"version": "1.30.0",
44
"description": "source code of react.colorpk.com",
55
"engines": {
66
"node": ">= 16.x"

src/components/Html.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Html = ({
4545
<link href={style} rel="stylesheet" />
4646
<script
4747
dangerouslySetInnerHTML={{
48-
__html: `if(window.location.hostname.indexOf('colorpk.com') > -1){(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-5LX6LV3');} var initLoadTime = Date.now();window.addEventListener('_COLORPK_SCRIPT_READY', function(){window.dataLayer.push({'scriptLoadingTime': Date.now() - initLoadTime});console.log('server last build: ${lastBuildDate}');});
48+
__html: `if(window.location.hostname.indexOf('colorpk.com') > -1){(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-5LX6LV3');} var initLoadTime = Date.now();window.addEventListener('_COLORPK_SCRIPT_READY', function(){if(!Array.isArray(window.dataLayer)){return;} window.dataLayer.push({'scriptLoadingTime': Date.now() - initLoadTime});console.log('server last build: ${lastBuildDate}');});
4949
`,
5050
}}
5151
/>

src/server/resource/mongodb/connection.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { MongoClient, ServerApiVersion } from 'mongodb';
44
const { MONGO_CONN, MONGO_CRED_PATH: credentials } = process.env;
55

66
if (!MONGO_CONN || !credentials) {
7-
console.log('MONGO_CONN', MONGO_CONN);
8-
console.log('credentials', credentials);
97
throw new Error('MongoDB connection info is missing.');
108
}
119

0 commit comments

Comments
 (0)