We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd455cf commit aa68762Copy full SHA for aa68762
src/config.ts src/main/config.tssrc/config.ts renamed to src/main/config.ts
src/main/services/api/server.ts
@@ -3,7 +3,7 @@ import { store } from '../../store'
3
import type { Server } from 'http'
4
import type { Socket } from 'net'
5
import { nanoid } from 'nanoid'
6
-import { API_PORT } from '../../../config'
+import { API_PORT } from '../../config'
7
interface ServerWithDestroy extends Server {
8
destroy: Function
9
}
src/renderer/composable/index.ts
@@ -1,7 +1,7 @@
1
import { createFetch } from '@vueuse/core'
2
import mitt from 'mitt'
import type { Events } from './types'
-import { API_PORT } from '../../config'
+import { API_PORT } from '../../main/config'
export const useApi = createFetch({
baseUrl: `http://localhost:${API_PORT}`
0 commit comments