diff --git a/Dockerfile b/Dockerfile index 4db86ca..324fee3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:17.3-alpine +FROM node:18.15.0-alpine LABEL maintainer="Rishi Ghan " WORKDIR /threetwo @@ -9,11 +9,11 @@ COPY nodemon.json ./ COPY jsdoc.json ./ # RUN apt-get update && apt-get install -y git python3 build-essential autoconf automake g++ libpng-dev make -RUN apk --no-cache add g++ make libpng-dev python3 git libc6-compat autoconf automake bash libjpeg-turbo-dev libpng-dev mesa-dev mesa libxi build-base gcc libtool nasm +RUN apk --no-cache add g++ make libpng-dev git python3 libc6-compat autoconf automake libjpeg-turbo-dev libpng-dev mesa-dev mesa libxi build-base gcc libtool nasm RUN yarn --ignore-engines COPY . . -EXPOSE 3050 +EXPOSE 5173 ENTRYPOINT [ "npm", "start" ] \ No newline at end of file diff --git a/package.json b/package.json index 7de8d5b..8808b77 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "vite build", "dev": "rimraf dist && npm run build && vite", - "prod": "npm run build && vite", + "start": "npm run build && vite", "docs": "jsdoc -c jsdoc.json", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build" diff --git a/src/client/actions/comicinfo.actions.tsx b/src/client/actions/comicinfo.actions.tsx index f3d6c1b..5224eb9 100644 --- a/src/client/actions/comicinfo.actions.tsx +++ b/src/client/actions/comicinfo.actions.tsx @@ -1,7 +1,6 @@ import axios from "axios"; import rateLimiter from "axios-rate-limit"; import { setupCache } from "axios-cache-interceptor"; -import qs from "qs"; import { CV_SEARCH_SUCCESS, CV_API_CALL_IN_PROGRESS, @@ -64,9 +63,6 @@ export const comicinfoAPICall = (options) => async (dispatch) => { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", }, - paramsSerializer: (params) => { - return qs.stringify(params, { arrayFormat: "repeat" }); - }, }); switch (options.callURIAction) { diff --git a/src/client/components/Search.tsx b/src/client/components/Search.tsx index f07c422..8682c2d 100644 --- a/src/client/components/Search.tsx +++ b/src/client/components/Search.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useCallback, ReactElement } from "react"; +import React, { useCallback, ReactElement } from "react"; import { isNil, isEmpty } from "lodash"; import { IExtractedComicBookCoverFile, RootState } from "threetwo-ui-typings"; import { importToDB } from "../actions/fileops.actions";