Files
waoowaoo/next.config.ts

16 lines
484 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);