release: opensource snapshot 2026-02-27 19:25:00
This commit is contained in:
15
next.config.ts
Normal file
15
next.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { NextConfig } from "next";
|
||||
import createNextIntlPlugin from 'next-intl/plugin';
|
||||
|
||||
const withNextIntl = createNextIntlPlugin('./src/i18n.ts');
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// 已删除 ignoreBuildErrors / ignoreDuringBuilds,构建保持严格门禁
|
||||
// Next 15 的 allowedDevOrigins 是顶层配置,不属于 experimental
|
||||
allowedDevOrigins: [
|
||||
'http://192.168.31.218:3000',
|
||||
'http://192.168.31.*:3000',
|
||||
],
|
||||
};
|
||||
|
||||
export default withNextIntl(nextConfig);
|
||||
Reference in New Issue
Block a user