From 5996e0aabcfa726e6accda0287228cf9aae99850 Mon Sep 17 00:00:00 2001 From: Viacheslav Ignatov Date: Fri, 12 Oct 2018 20:57:26 +0300 Subject: [PATCH] =?UTF-8?q?chore=20-=20=F0=9F=92=BB=20add=20fake=20vk=20cr?= =?UTF-8?q?edentials=20for=20running=20the=20application=20in=20developmen?= =?UTF-8?q?t=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source-nodes.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source-nodes.js b/source-nodes.js index 2b375c02c..ba1bf17b4 100644 --- a/source-nodes.js +++ b/source-nodes.js @@ -2,7 +2,14 @@ const crypto = require(`crypto`) const R = require('ramda') const { VK } = require('vk-io') -const { VK_GROUP_ID, VK_TOKEN } = process.env +const { VK_GROUP_ID, VK_TOKEN } = + process.env.NODE_ENV === 'production' + ? process.env + : { + VK_GROUP_ID: '-94098151', + VK_TOKEN: + 'a5e87d46a5e87d46a5e87d4688a58efa77aa5e8a5e87d46fe28c43a9c89a48e02cce22e', + } let vk = new VK()