Skip to content

Commit

Permalink
Merge pull request #802 from near/partial-prod-release
Browse files Browse the repository at this point in the history
Prod Release 13/06/24

Bug Fixes
- Fixed Context DB Auto Complete Issues
  • Loading branch information
darunrs authored Jun 13, 2024
2 parents d84c2ae + 8ffa697 commit 1c446be
Show file tree
Hide file tree
Showing 47 changed files with 4,731 additions and 11,859 deletions.
11 changes: 5 additions & 6 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:16-alpine as dependencies
FROM node:18-alpine as dependencies
WORKDIR ./
COPY package.json yarn.lock ./
COPY package.json package-lock.json ./
RUN npm install


FROM node:16-alpine as builder
FROM node:18-alpine as builder
# Set build arguments and environment variables
ARG NEXT_PUBLIC_REGISTRY_CONTRACT_ID
ARG NEXT_PUBLIC_HASURA_ENDPOINT
Expand All @@ -16,7 +15,7 @@ COPY . .
COPY --from=dependencies ./node_modules ./node_modules
RUN npm run build

FROM node:16-alpine as runner
FROM node:18-alpine as runner
WORKDIR ./
ENV NODE_ENV production

Expand All @@ -25,4 +24,4 @@ COPY --from=builder ./node_modules ./node_modules
COPY --from=builder ./package.json ./package.json

EXPOSE 3000
CMD ["npm", "run","start"]
CMD ["npm", "run", "start"]
15 changes: 8 additions & 7 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/* eslint-disable */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
extensionsToTreatAsEsm: ['.jsx'],
transform: {
'^.+\\.[jt]sx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest',
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
testPathIgnorePatterns: [
'/formatters\\.test\\.js',
'/Editor\\.test\\.js',
],
};
Loading

0 comments on commit 1c446be

Please sign in to comment.