This commit is contained in:
Андрей Дувакин 2024-12-22 20:01:56 +05:00
parent 3bc664d223
commit eef8ca7762
4 changed files with 19 additions and 1 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
node_modules
npm-debug.log
build
.dockerignore
.git

2
.gitignore vendored
View File

@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:18-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
CMD ["npm", "start"]

View File

@ -1,6 +1,6 @@
import axios from "axios";
const API_URL = process.env.REACT_APP_API_URL;
const API_URL = process.env.REACT_APP_LOGISTICS_API_URL;
export const getAuthToken = () => {
return localStorage.getItem("token");