Add some debug
This commit is contained in:
parent
878fc145da
commit
0bd9ef5858
12
.drone.yml
12
.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:
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user