Skip to content

Commit

Permalink
Updated Next.js to v12
Browse files Browse the repository at this point in the history
  • Loading branch information
kenerwin88 committed Dec 26, 2021
1 parent 75c342f commit c0aa3a8
Show file tree
Hide file tree
Showing 7 changed files with 363 additions and 300 deletions.
10 changes: 5 additions & 5 deletions backend/src/ingestor/utils/getEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export async function getEvents(firstBlock: number, lastMinedBlock: number, logg
const wrappedFilter = pixelMapWrapper.filters.Wrapped();

while (currentBlock < lastMinedBlock) {
// Secret Teleportation past nothingness
if (currentBlock > 3974343 && currentBlock < 13062712) {
logger.log('Teleporting past the land of nothingness!');
currentBlock = 13062713;
}
// // Secret Teleportation past nothingness
// if (currentBlock > 3974343 && currentBlock < 13062712) {
// logger.log('Teleporting past the land of nothingness!');
// currentBlock = 13062713;
// }

let toBlock = currentBlock + BLOCKS_TO_PROCESS_AT_TIME;
if (toBlock > lastMinedBlock) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FROM node:alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
RUN NODE_OPTIONS=--openssl-legacy-provider yarn build && yarn install --production --ignore-scripts --prefer-offline
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline

# Production image, copy all the files and run next
FROM node:alpine AS runner
Expand Down
2 changes: 1 addition & 1 deletion frontend/chart/values/prod.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
IMAGE: 389059433654.dkr.ecr.us-east-1.amazonaws.com/frontend:1.2.4
IMAGE: 389059433654.dkr.ecr.us-east-1.amazonaws.com/frontend:1.2.7
API_ENDPOINT: https://api.pixelmap.io
DOMAINS:
- "pixelmap.io"
Expand Down
1 change: 0 additions & 1 deletion frontend/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"test": "jest"
},
"dependencies": {
"@babel/core": "^7.0.0-0",
"@ethersproject/contracts": "^5.4.1",
"@ethersproject/providers": "^5.4.5",
"@ethersproject/units": "^5.4.0",
Expand All @@ -22,11 +23,12 @@
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"@web3-react/network-connector": "^6.1.9",
"next": "^11.0.0",
"next": "^12.0.7",
"node-base91": "^0.3.4",
"paco": "^0.4.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "^17.0.2",
"react-popper-tooltip": "^4.3.0",
"sharp": "^0.29.1",
"tailwindcss": "^2.2.9"
Expand All @@ -40,8 +42,6 @@
"babel-jest": "^27.2.4",
"eslint": "^7.32.0",
"eslint-config-next": "11.1.2",
"node-base91": "^0.3.4",
"pako": "^1.0.11",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.2.4",
"node-base91": "^0.3.4",
Expand Down
3 changes: 2 additions & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"include": [
"next-env.d.ts",
Expand Down
Loading

0 comments on commit c0aa3a8

Please sign in to comment.