Add production blocks-registry

This commit is contained in:
2022-10-05 14:18:29 +03:00
parent e735f2d141
commit 40c67a0bd8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error. const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error.
const blocksRegistry = isDev ? 'http://localhost:3020' : 'http://localhost:3020'; const blocksRegistry = isDev ? 'http://localhost:3020' : 'https://axe-web-blocks-registry.captain.devdevdev.life/';
const blocksDirectory = isDev ? 'blocks/' : ''; const blocksDirectory = isDev ? 'blocks/' : '';
console.log(__dirname); console.log(__dirname);
+1 -1
View File
@@ -25,7 +25,7 @@ import archiver from 'archiver';
*/ */
const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error. const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error.
const blocksRegistry = isDev ? 'http://localhost:3020' : 'http://localhost:3020'; const blocksRegistry = isDev ? 'http://localhost:3020' : 'https://axe-web-blocks-registry.captain.devdevdev.life/';
const modulePath = isDev ? '' : 'node_modules/create-block-dev-tool/'; const modulePath = isDev ? '' : 'node_modules/create-block-dev-tool/';
const projectDir = modulePath; const projectDir = modulePath;