Skip to content

Commit 6ff9878

Browse files
committed
1
1 parent 5acb6b9 commit 6ff9878

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

i18n/request.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { locales } from '../src/config';
33

44
export default getRequestConfig(async ({ requestLocale }) => {
55
const locale = await requestLocale;
6-
return {
6+
return {
77
messages: (await import(`../messages/${locale}.json`)).default,
8-
timeZone: 'Asia/Shanghai',
9-
now: new Date(),
10-
setRequestLocale: locale
11-
};
8+
timeZone: 'Asia/Shanghai',
9+
now: new Date(),
10+
setRequestLocale: locale
11+
};
1212
});

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const nextConfig = {
55
images: {
66
unoptimized: true,
77
},
8-
basePath: process.env.NODE_ENV === 'production' ? '/wificard' : '',
8+
// basePath: process.env.NODE_ENV === 'production' ? '' : '',
99
};
1010

1111
module.exports = withNextIntl(nextConfig);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@types/react-dom": "^19",
2525
"eslint": "^9",
2626
"eslint-config-next": "15.1.6",
27+
"eslint-plugin-react-hooks": "^5.1.0",
2728
"postcss": "^8",
2829
"tailwindcss": "^3.4.1",
2930
"typescript": "^5"

pnpm-lock.yaml

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

src/app/[locale]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const WiFiCard = dynamic(() => import('../../components/WiFiCard'), {
1313
export default function Home() {
1414
const searchParams = useSearchParams();
1515
const scene = searchParams.get('scene');
16-
16+
1717
return (
1818
<Suspense fallback={<Loading />}>
1919
<WiFiCard scene={scene} />

0 commit comments

Comments
 (0)