Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod Release 13/06/24 #802

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading