PWA for development

Summary: This was not possible in the past because the entry points for dev and production were different. This is no longer the case.

Reviewed By: antonk52

Differential Revision: D51346250

fbshipit-source-id: fc482a9d90352ea4e897092e7670920f148fa274
This commit is contained in:
Lorenzo Blasa
2023-11-15 03:45:25 -08:00
committed by Facebook GitHub Bot
parent 6b54bd3173
commit 6ccae92918

View File

@@ -31,7 +31,7 @@ import {
tracker, tracker,
processExit, processExit,
} from 'flipper-server-core'; } from 'flipper-server-core';
import {addLogTailer, isProduction, isTest, LoggerFormat} from 'flipper-common'; import {addLogTailer, isTest, LoggerFormat} from 'flipper-common';
import exitHook from 'exit-hook'; import exitHook from 'exit-hook';
const argv = yargs const argv = yargs
@@ -315,8 +315,7 @@ async function launch() {
return; return;
} }
const preference = isProduction() ? UIPreference.PWA : UIPreference.Browser; openUI(UIPreference.PWA, argv.port);
openUI(preference, argv.port);
} }
process.on('uncaughtException', (error) => { process.on('uncaughtException', (error) => {