fix: fix https config
This commit is contained in:
@@ -21,10 +21,19 @@ export const runtime = useContextKey('runtime', () => {
|
||||
type: 'client',
|
||||
};
|
||||
});
|
||||
|
||||
export const app = useContextKey('app', () => {
|
||||
const init = isInit;
|
||||
if (init) {
|
||||
// const config = assistantConfig.getConfig();
|
||||
const config = assistantConfig.getConfig();
|
||||
if (config?.https?.type !== 'https') {
|
||||
return new App({
|
||||
serverOptions: {
|
||||
path: '/client/router',
|
||||
httpType: 'http',
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
return new App({
|
||||
serverOptions: {
|
||||
|
||||
Reference in New Issue
Block a user