diff --git a/package.json b/package.json index ebbfadc..bf2f05e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dialogue-chatbox", "private": false, - "version": "1.0.33", + "version": "1.0.34", "type": "module", "main": "./dist-components/index.umd.js", "module": "./dist-components/index.es.js", @@ -21,7 +21,7 @@ "dev": "vite", "build-web": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-dsisable-directives --max-warnings 0", - "preview": "vite preview", + "start": "vite preview", "build-components": "tsc && vite build --config vite-components.config.ts", "build": "concurrently \"npm run build-components\" \"npm run build-web\"" }, diff --git a/src/context/socket.ctx.tsx b/src/context/socket.ctx.tsx index 266c88f..cf0529e 100644 --- a/src/context/socket.ctx.tsx +++ b/src/context/socket.ctx.tsx @@ -55,7 +55,7 @@ export const SocketCtx = createContext({} as TSocketCtx) const URL = import.meta.env.DEV ? import.meta.env.VITE_DEV_API_URL - : import.meta.env.VITE_DEV_API_URL + : import.meta.env.VITE_PROD_API_URL export type Props = { children: React.ReactNode