2e86a723c6
* feat(fileimport-service): add next gen file importer * feat(fileimports): integrate server and fileimporter * chore(dui3): remove leftover artifacts * fix(server): test typing fixes * fix(fileimports): test and pr comment fixes * feat(fileimports: moare test fixes * fix(fileimports): tests and yarn dedupe
17 lines
439 B
TypeScript
17 lines
439 B
TypeScript
import '@/bootstrap.js' // This has side-effects and has to be imported first
|
|
import * as Environment from '@speckle/shared/environment'
|
|
|
|
const { FF_NEXT_GEN_FILE_IMPORTER_ENABLED } = Environment.getFeatureFlags()
|
|
import { main as oldMain } from '@/controller/daemon.js'
|
|
import { main } from '@/nextGen/main.js'
|
|
|
|
const start = () => {
|
|
if (FF_NEXT_GEN_FILE_IMPORTER_ENABLED) {
|
|
void main()
|
|
} else {
|
|
void oldMain()
|
|
}
|
|
}
|
|
|
|
start()
|