feat: 添加工作空间保持存活功能,更新相关依赖和配置
This commit is contained in:
@@ -2,7 +2,6 @@ import { QueryRouterServer as App } from '@kevisual/router'
|
||||
import { useContextKey } from '@kevisual/context'
|
||||
import { useConfig, useKey } from '@kevisual/use-config'
|
||||
import { CNB } from '../src/index.ts';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
export const config = useConfig()
|
||||
export const cnb = useContextKey<CNB>('cnb', () => {
|
||||
@@ -13,9 +12,6 @@ export const cnb = useContextKey<CNB>('cnb', () => {
|
||||
const cookie = useKey('CNB_COOKIE') as string
|
||||
return new CNB({ token: token, cookie: cookie });
|
||||
})
|
||||
export const appId = nanoid();
|
||||
export const app = useContextKey<App>('app', () => {
|
||||
return new App({
|
||||
appId
|
||||
})
|
||||
return new App({})
|
||||
})
|
||||
Reference in New Issue
Block a user