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

Update dependencies #78

Merged
merged 5 commits into from
Feb 12, 2025
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
4 changes: 2 additions & 2 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Install dependencies only when needed
FROM node:18-alpine AS deps
FROM node:22-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat g++ gcc libgcc libstdc++ linux-headers make python3
WORKDIR /app
COPY ../package.json /app/package.json
COPY ../yarn.lock /app/yarn.lock
RUN yarn install --frozen-lockfile

FROM node:18-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /app
COPY .. .
COPY --from=deps /app/node_modules ./node_modules
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22.13.0
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ const nextConfig = withNextIntl({
apiHost: process.env.NEXT_PUBLIC_API_HOST,
portal: process.env.NEXT_PUBLIC_PORTAL,
},
experimental: {
serverActions: true,
},
images: {
remotePatterns: [
{
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"leaflet": "^1.9.4",
"leaflet.locatecontrol": "^0.79.0",
"lucide-react": "^0.221.0",
"next": "^13.5.4",
"next": "14.2.23",
"next-intl": "2.15.0-beta.5",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.43.9",
"react-leaflet": "^4.2.1",
"react-modal": "^3.16.1",
Expand All @@ -53,9 +53,9 @@
"@types/geojson": "^7946.0.10",
"@types/leaflet": "^1.9.3",
"@types/leaflet.locatecontrol": "^0.74.1",
"@types/node": "^18.15.12",
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@types/node": "^22.13.1",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@typescript-eslint/parser": "^5.59.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.38.0",
Expand Down
13 changes: 9 additions & 4 deletions src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ export const generateMetadata = async () => {
template: `%s - ${t('title')}`,
},
description: t('description'),
themeColor: [
{ media: '(prefers-color-scheme: light)', color: 'white' },
{ media: '(prefers-color-scheme: dark)', color: 'black' },
],
icons: {
icon: '/medias/favicon.png',
shortcut: '/medias/favicon-16x16.png',
Expand All @@ -38,6 +34,15 @@ export const generateMetadata = async () => {
};
};

export function generateViewport() {
return {
themeColor: [
{ media: '(prefers-color-scheme: light)', color: 'white' },
{ media: '(prefers-color-scheme: dark)', color: 'black' },
],
};
}

export default async function PageLayout({ children, params }: Props) {
const locale = useLocale();

Expand Down
Loading