Skip to content

Commit

Permalink
fix(main): import config in build
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Mar 31, 2022
1 parent dd455cf commit aa68762
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main/services/api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { store } from '../../store'
import type { Server } from 'http'
import type { Socket } from 'net'
import { nanoid } from 'nanoid'
import { API_PORT } from '../../../config'
import { API_PORT } from '../../config'
interface ServerWithDestroy extends Server {
destroy: Function
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/composable/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createFetch } from '@vueuse/core'
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}`
Expand Down

0 comments on commit aa68762

Please sign in to comment.