- Disabled development indicators in next.config.ts for cleaner output. - Updated English and Chinese message files to include new block titles for logo, login, signup, and contact sections. - Refactored routes to include new paths for login, signup, and contact blocks. - Introduced new layout and page components for marketing sections, including logo cloud and various call-to-action pages. - Enhanced blocks navigation component to utilize updated paths and improve user experience.
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import type { NextConfig } from "next";
|
|
import createNextIntlPlugin from 'next-intl/plugin';
|
|
import { withContentCollections } from "@content-collections/next";
|
|
|
|
/**
|
|
* https://nextjs.org/docs/app/api-reference/config/next-config-js
|
|
*/
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
devIndicators: false,
|
|
|
|
// https://nextjs.org/docs/architecture/nextjs-compiler#remove-console
|
|
// Remove all console.* calls in production only
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === "production",
|
|
},
|
|
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "avatars.githubusercontent.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "lh3.googleusercontent.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "randomuser.me",
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'res.cloudinary.com',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
/**
|
|
* You can specify the path to the request config file or use the default one (@/i18n/request.ts)
|
|
*
|
|
* https://next-intl.dev/docs/getting-started/app-router/with-i18n-routing#next-config
|
|
*/
|
|
const withNextIntl = createNextIntlPlugin();
|
|
|
|
/**
|
|
* withContentCollections must be the outermost plugin
|
|
*
|
|
* https://www.content-collections.dev/docs/quickstart/next
|
|
*/
|
|
export default withContentCollections(withNextIntl(nextConfig));
|