Skip to content

Commit 2676d3f

Browse files
committed
chore: rollback Next.js and related packages to version 15.5.4
1 parent c5d68cb commit 2676d3f

File tree

7 files changed

+615
-323
lines changed

7 files changed

+615
-323
lines changed

apps/website/next.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { NextConfig } from 'next';
2-
import { withIntlayerSync } from 'next-intlayer/server';
2+
import { withIntlayer } from 'next-intlayer/server';
33
import withPWA from 'next-pwa';
44
import { createSecureHeaders } from 'next-secure-headers';
55

@@ -152,8 +152,8 @@ const nextConfig: NextConfig = {
152152
serverExternalPackages: ['@intlayer/backend', '@intlayer/docs'],
153153
transpilePackages: ['@intlayer/design-system', 'shiki'],
154154
productionBrowserSourceMaps: true,
155-
reactCompiler: true,
156-
cacheComponents: true,
155+
// reactCompiler: true,
156+
// cacheComponents: true,
157157
webpack: (config) => {
158158
config.module.rules.push({
159159
test: /\.md$/,
@@ -258,6 +258,6 @@ const nextConfigPWA: NextConfig = withPWA({
258258
skipWaiting: true,
259259
})(nextConfig);
260260

261-
const config: NextConfig = withIntlayerSync(nextConfigPWA);
261+
const config: Promise<NextConfig> = withIntlayer(nextConfigPWA);
262262

263263
export default config;

apps/website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"scripts": {
3838
"build": "next build",
3939
"build:webpack": "next build --webpack",
40-
"dev": "intlayer watch --with 'next dev'",
40+
"dev": "intlayer watch --with 'next dev --turbopack'",
4141
"dev:webpack": "next dev",
4242
"editor": "intlayer-editor start",
4343
"generate-pwa-assets": "pwa-asset-generator --preset minimal ../../packages/@intlayer/design-system/src/components/Logo/logo_circle_wite.svg ./public/assets/",
@@ -59,7 +59,7 @@
5959
"@intlayer/types": "workspace:*",
6060
"@intlayer/unmerged-dictionaries-entry": "workspace:*",
6161
"@monaco-editor/react": "4.7.0",
62-
"@next/third-parties": "16.0.0",
62+
"@next/third-parties": "15.5.4",
6363
"@stripe/react-stripe-js": "5.2.0",
6464
"@stripe/stripe-js": "8.1.0",
6565
"@tanstack/react-query": "5.90.5",
@@ -71,7 +71,7 @@
7171
"fuse.js": "7.1.0",
7272
"intlayer": "workspace:*",
7373
"lucide-react": "0.547.0",
74-
"next": "16.0.0",
74+
"next": "15.5.4",
7575
"next-intlayer": "workspace:*",
7676
"next-secure-headers": "2.2.0",
7777
"next-themes": "0.4.6",

apps/website/src/components/Auth/AuthenticationBarrier/AuthenticationBarrier.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getQueryParams } from '@utils/queryMiddleware';
1+
import { getQueryParams } from '@utils/queryProxy';
22
import { getLocalizedUrl, type LocalesValues } from 'intlayer';
33
import type { FC } from 'react';
44
import { PagesRoutes } from '@/Routes';

apps/website/src/proxy.ts renamed to apps/website/src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { queryProxy } from '@utils/queryProxy';
22
import { intlayerProxy, multipleProxies } from 'next-intlayer/proxy';
33

4-
export const proxy = multipleProxies([intlayerProxy, queryProxy]);
4+
export const middleware = multipleProxies([intlayerProxy, queryProxy]);
55

66
// Middleware can also be exported as a default:
77
// Example:

bun.lock

Lines changed: 601 additions & 313 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"typecheck": "turbo typecheck --filter=./packages/** --filter=./docs --filter=./apps/backend --concurrency=1"
6969
},
7070
"overrides": {
71+
"next": "15.5.4",
7172
"react": "19.2.0",
7273
"react-dom": "19.2.0"
7374
},

packages/next-intlayer/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@
7878
"format": [
7979
"./dist/types/client/format/index.d.ts"
8080
],
81+
"proxy": [
82+
"./dist/types/proxy/index.d.ts"
83+
],
8184
"middleware": [
82-
"./dist/types/middleware/index.d.ts"
85+
"./dist/types/proxy/index.d.ts"
8386
],
8487
"server": [
8588
"./dist/types/server/index.d.ts"

0 commit comments

Comments
 (0)