create qr-codes by tg bot
This commit is contained in:
@@ -12,7 +12,9 @@ import type {
|
||||
import { DB_NAMES } from '@/constants/dbNames'
|
||||
|
||||
export const getRemoteDb = <T extends BaseDocument>(dbName: DB_NAMES) =>
|
||||
new PouchDB<T>(`${import.meta.env.VITE_API_URL}/${dbName}`, { skip_setup: true })
|
||||
new PouchDB<T>(new URL(`${import.meta.env.VITE_API_URL}/${dbName}`, location.origin).toString(), {
|
||||
skip_setup: true,
|
||||
})
|
||||
|
||||
export const getLocalDb = <T extends BaseDocument>(dbName: DB_NAMES) => new PouchDB<T>(dbName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user