diff --git a/.drone.yml b/.drone.yml index 4a5514f..732391a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,18 +4,6 @@ name: default ports: [3001] steps: - - name: install dependencies - image: node:18-alpine - commands: - - npm install - - name: test - image: node:18-alpine - commands: - - npm run lint - - name: build - image: node:18-alpine - commands: - - npm run build - name: docker image: plugins/docker settings: diff --git a/Dockerfile b/Dockerfile index 4748967..9fe98fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN \ # Rebuild the source code only when needed -FROM node:16-alpine AS builder +FROM node:18-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . @@ -31,12 +31,12 @@ RUN yarn build # RUN npm run build # Production image, copy all the files and run next -FROM node:16-alpine AS runner +FROM node:18-alpine AS runner WORKDIR /app ENV NODE_ENV production # Uncomment the following line in case you want to disable telemetry during runtime. -# ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED 1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs diff --git a/src/pages/overlay.js b/src/pages/overlay.js index 8c491aa..dfe85cb 100644 --- a/src/pages/overlay.js +++ b/src/pages/overlay.js @@ -185,6 +185,11 @@ export default class Overlay extends Component { * @returns */ async updateData(id) { + console.log( + `Using url: ${ + Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData + }` + ); const data = await fetch( Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData.replace( "%s", @@ -197,7 +202,9 @@ export default class Overlay extends Component { } ); try { + console.log(`status code: ${data.status}`); const json = await data.json(); + console.log(json); this.setState({ loadingPlayerData: false, id: id, diff --git a/yarn.lock b/yarn.lock index 53e35a9..71290ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2775,7 +2775,7 @@ semver@^7.3.5, semver@^7.3.7: sharp@^0.31.1: version "0.31.1" - resolved "https://registry.npmjs.org/sharp/-/sharp-0.31.1.tgz" + resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.31.1.tgz#b2f7076d381a120761aa93700cadefcf90a22458" integrity sha512-GR8M1wBwOiFKLkm9JPun27OQnNRZdHfSf9VwcdZX6UrRmM1/XnOrLFTF0GAil+y/YK4E6qcM/ugxs80QirsHxg== dependencies: color "^4.2.3"