Skip to content

Commit

Permalink
v1.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
im6 committed Aug 2, 2023
1 parent 11a60b3 commit 81fa966
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/public/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/server/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vp",
"version": "1.29.0",
"version": "1.30.0",
"description": "source code of react.colorpk.com",
"engines": {
"node": ">= 16.x"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Html.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Html = ({
<link href={style} rel="stylesheet" />
<script
dangerouslySetInnerHTML={{
__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}');});
__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}');});
`,
}}
/>
Expand Down
2 changes: 0 additions & 2 deletions src/server/resource/mongodb/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { MongoClient, ServerApiVersion } from 'mongodb';
const { MONGO_CONN, MONGO_CRED_PATH: credentials } = process.env;

if (!MONGO_CONN || !credentials) {
console.log('MONGO_CONN', MONGO_CONN);
console.log('credentials', credentials);
throw new Error('MongoDB connection info is missing.');
}

Expand Down

0 comments on commit 81fa966

Please sign in to comment.