Skip to content

Commit 343eb14

Browse files
committed
fix: use explicit path for next-intl like 2025 repo
1 parent fa9beac commit 343eb14

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ jobs:
5555
cache: ${{ steps.detect-package-manager.outputs.manager }}
5656
- name: Setup Pages
5757
uses: actions/configure-pages@v5
58-
with:
59-
# Automatically inject basePath in your Next.js configuration file and disable
60-
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
61-
#
62-
# You may remove this line if you want to manage the configuration yourself.
63-
static_site_generator: next
58+
# with:
59+
# # Automatically inject basePath in your Next.js configuration file and disable
60+
# # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
61+
# #
62+
# # You may remove this line if you want to manage the configuration yourself.
63+
# static_site_generator: next
6464
- name: Restore cache
6565
uses: actions/cache@v4
6666
with:

i18n.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './src/i18n/request';

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22
import createNextIntlPlugin from 'next-intl/plugin';
33

4-
const withNextIntl = createNextIntlPlugin();
4+
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
55

66
const nextConfig: NextConfig = {
77
output: 'export',

0 commit comments

Comments
 (0)