fix(core): update
This commit is contained in:
22
ts/index.ts
Normal file
22
ts/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export * from './npm-publicserver.classes.uipublicserver';
|
||||
|
||||
import { UiPublicServer } from '.';
|
||||
|
||||
process.env.UIP_ENV = process.env.BACKEND_URL.includes('develop-backend') ? 'dev' : 'prod';
|
||||
|
||||
export const defaultPublicServer = new UiPublicServer({
|
||||
port: 3000,
|
||||
packageBaseDirectory: './public/',
|
||||
npmRegistryUrl: 'https://registry.npmjs.org/',
|
||||
allowedPackages: [
|
||||
'@pushrocks/smartfile'
|
||||
],
|
||||
mode: process.env.UIP_ENV === 'dev' ? 'dev' : 'prod',
|
||||
log: false,
|
||||
});
|
||||
|
||||
export const runCli = async () => {
|
||||
|
||||
}
|
||||
|
||||
export const stop = async () => {}
|
||||
Reference in New Issue
Block a user