Skip to content

Commit bec1897

Browse files
Merge pull request #402 from gofynd/feature/multilang-fix
disabled cloudflare tunnel and locales fix
2 parents 9fb9af5 + 764e6ac commit bec1897

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/fdk-cli",
3-
"version": "8.0.0",
3+
"version": "8.0.1",
44
"main": "index.js",
55
"license": "MIT",
66
"bin": {

src/helper/locales.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ export async function syncLocales(syncMode: SyncMode, targetDirectory = ""): Pro
123123
Logger.debug(`Starting locale sync in '${syncMode}' mode.`);
124124
try {
125125
const remoteItems = await fetchRemoteItems();
126-
await ensureLocalesDir(targetDirectory);
126+
const localesDirExists = fs.existsSync(LOCALES_DIR(targetDirectory));
127+
if(!localesDirExists){
128+
Logger.info(`locales directory does not exist. Hence, skipping the locales sync`);
129+
return;
130+
}
127131
const localFiles = await getJsonFiles(targetDirectory);
128132

129133
// Map remote by filename for quick lookup

src/helper/serve.utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ async function startTunnel(port: number) {
385385
export async function startReactServer({ domain, host, isHMREnabled, port }) {
386386
const { currentContext, app, server, io } = await setupServer({ domain });
387387

388-
const { url } = await startTunnel(port);
388+
// const { url } = await startTunnel(port);
389389

390390
if (isHMREnabled) {
391391
let webpackConfigFromTheme = {};
@@ -541,7 +541,7 @@ export async function startReactServer({ domain, host, isHMREnabled, port }) {
541541
cliMeta: {
542542
port,
543543
domain: getFullLocalUrl(port),
544-
tunnelUrl: url,
544+
// tunnelUrl: url,
545545
},
546546
},
547547
{

0 commit comments

Comments
 (0)