Skip to content

Commit bd0bae3

Browse files
authored
Update next-intl and next (#167)
* Update next-intl and next * Fix jest mock * Remove nested page * Change not-found
1 parent 430add4 commit bd0bae3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+367
-285
lines changed

jest.setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import '@testing-library/jest-dom'
66

7-
jest.mock('next-intl/client', () => ({
7+
jest.mock('./src/navigation', () => ({
88
useRouter: jest.fn(() => ({
99
push: jest.fn(),
1010
replace: jest.fn(),

next.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import withPWAInit from '@ducanh2912/next-pwa'
22
import { withAxiom } from 'next-axiom'
3-
import nextIntlPlugin from 'next-intl/plugin'
3+
import createNextIntlPlugin from 'next-intl/plugin'
44

55
/**
66
* Run `build` or `dev` script with `SKIP_ENV_VALIDATION` to skip validation
@@ -12,7 +12,7 @@ import nextIntlPlugin from 'next-intl/plugin'
1212
* Create config wrapper required for using next-intl with RSCs.
1313
* See https://next-intl-docs.vercel.app/docs/getting-started/app-router-server-components
1414
*/
15-
const withNextIntl = nextIntlPlugin('./src/server/i18n.ts')
15+
const withNextIntl = createNextIntlPlugin('./src/server/i18n.ts')
1616

1717
const withPWA = withPWAInit({
1818
dest: 'public',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"leaflet": "1.9.4",
4444
"leaflet.locatecontrol": "0.79.0",
4545
"mysql2": "3.8.0",
46-
"next": "13.4.19",
46+
"next": "14.1.0",
4747
"next-auth": "4.24.5",
48-
"next-intl": "3.0.0-beta.19",
48+
"next-intl": "3.5.4",
4949
"postcss": "8.4.33",
5050
"react": "18.2.0",
5151
"react-dom": "18.2.0",

pnpm-lock.yaml

Lines changed: 64 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/[locale]/(app)/explore/_components/categories-grid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import { Button } from '@nextui-org/button'
44
import { Card } from '@nextui-org/card'
55
import { useTranslations } from 'next-intl'
6-
import Link from 'next-intl/link'
76
import { FC, useState } from 'react'
87
import { PlaceCategoryIcon } from '~/components/icons/place-category-icon'
98
import { cn } from '~/helpers/cn'
9+
import { Link } from '~/navigation'
1010
import { ApiRouterOutput } from '~/server/api/router'
1111

1212
type Categories = ApiRouterOutput['places']['listCategories']

0 commit comments

Comments
 (0)