updating dependencies, fixing server reloads

This commit is contained in:
Amruth Pillai
2023-06-07 18:39:14 +02:00
parent c571f201d3
commit d4b6c16bf9
25 changed files with 1674 additions and 1821 deletions

View File

@ -40,7 +40,4 @@ EXPOSE 3000
ENV PORT 3000
HEALTHCHECK --interval=30s --timeout=20s --retries=3 --start-period=15s \
CMD curl -fSs localhost:3000 || exit 1
CMD [ "pnpm", "run", "start" ]

View File

@ -0,0 +1,43 @@
FROM node:18-alpine AS base
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn global add pnpm && pnpm build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 3000
ENV PORT 3000
CMD ["node", "client/server.js"]

View File

@ -58,12 +58,10 @@ const ResumeInput: React.FC<Props> = ({ type = 'text', label, path, className, m
openTo="year"
label={label}
value={dayjs(value)}
views={['year', 'month', 'day']}
slots={{
textField: (params) => <TextField {...params} error={false} className={className} />,
}}
slots={{ textField: (params) => <TextField {...params} error={false} className={className} /> }}
onChange={(date: dayjs.Dayjs | null) => {
date && dayjs(date).isValid() && onChangeValue(dayjs(date).format('YYYY-MM-DD'));
if (!date) return onChangeValue('');
if (dayjs(date).isValid()) return onChangeValue(dayjs(date).format('YYYY-MM-DD'));
}}
/>
);

View File

@ -3,6 +3,7 @@ const { i18n } = require('./next-i18next.config');
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
reactStrictMode: true,
i18n,

View File

@ -9,74 +9,74 @@
},
"dependencies": {
"@beam-australia/react-env": "^3.1.1",
"@emotion/css": "^11.10.6",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@emotion/css": "^11.11.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@hello-pangea/dnd": "^16.2.0",
"@hookform/resolvers": "3.1.0",
"@monaco-editor/react": "^4.5.0",
"@monaco-editor/react": "^4.5.1",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.127",
"@mui/material": "^5.12.1",
"@mui/system": "^5.12.1",
"@mui/x-date-pickers": "6.2.1",
"@react-oauth/google": "^0.10.0",
"@mui/lab": "^5.0.0-alpha.133",
"@mui/material": "^5.13.4",
"@mui/system": "^5.13.2",
"@mui/x-date-pickers": "6.6.0",
"@react-oauth/google": "^0.11.0",
"@reduxjs/toolkit": "^1.9.5",
"axios": "^1.3.6",
"axios": "^1.4.0",
"clsx": "^1.2.1",
"dayjs": "^1.11.7",
"dayjs": "^1.11.8",
"downloadjs": "^1.4.7",
"joi": "^17.9.1",
"joi": "^17.9.2",
"lodash": "^4.17.21",
"md5-hex": "^4.0.0",
"monaco-editor": "^0.37.1",
"monaco-editor": "^0.39.0",
"nanoid": "3.3.4",
"next": "13.3.0",
"next-i18next": "^13.2.2",
"next": "13.4.4",
"next-i18next": "^13.3.0",
"react": "^18.2.0",
"react-colorful": "^5.6.1",
"react-dnd": "16.0.1",
"react-dnd-html5-backend": "16.0.1",
"react-dom": "^18.2.0",
"react-hook-form": "^7.43.9",
"react-hot-toast": "2.4.0",
"react-icons": "^4.8.0",
"react-hook-form": "^7.44.3",
"react-hot-toast": "2.4.1",
"react-icons": "^4.9.0",
"react-markdown": "^8.0.7",
"react-query": "^3.39.3",
"react-redux": "^8.0.5",
"react-zoom-pan-pinch": "^3.0.7",
"react-redux": "^8.0.7",
"react-zoom-pan-pinch": "^3.0.8",
"redux": "^4.2.1",
"redux-persist": "^6.0.0",
"redux-saga": "^1.2.3",
"redux-undo": "^1.0.1",
"rehype-katex": "^6.0.2",
"rehype-katex": "^6.0.3",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"sharp": "^0.32.0",
"sharp": "^0.32.1",
"uuid": "^9.0.0",
"webfontloader": "^1.6.28"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.22.1",
"@reactive-resume/schema": "workspace:*",
"@tailwindcss/typography": "^0.5.9",
"@types/downloadjs": "^1.4.3",
"@types/lodash": "^4.14.194",
"@types/node": "^18.15.12",
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@types/lodash": "^4.14.195",
"@types/node": "^20.2.5",
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@types/react-redux": "^7.1.25",
"@types/uuid": "^9.0.1",
"@types/webfontloader": "^1.6.35",
"autoprefixer": "^10.4.14",
"csstype": "^3.1.2",
"eslint-config-next": "^13.3.0",
"eslint-plugin-tailwindcss": "^3.11.0",
"eslint-config-next": "^13.4.4",
"eslint-plugin-tailwindcss": "^3.12.1",
"eslint-plugin-unused-imports": "^2.0.0",
"next-sitemap": "^4.0.7",
"postcss": "^8.4.23",
"sass": "^1.62.0",
"tailwindcss": "^3.3.1",
"typescript": "^5.0.4"
"next-sitemap": "^4.1.3",
"postcss": "^8.4.24",
"sass": "^1.62.1",
"tailwindcss": "^3.3.2",
"typescript": "^5.1.3"
}
}