magicui

Форк
0
/
next.config.js 
46 строк · 1.2 Кб
1
const { withContentlayer } = require("next-contentlayer");
2

3
/** @type {import('next').NextConfig} */
4
const nextConfig = {
5
  output: process.env.NODE_ENV === "production" ? "standalone" : undefined,
6
  reactStrictMode: true,
7
  swcMinify: true,
8
  productionBrowserSourceMaps: true,
9
  experimental: {
10
    optimizeCss: true,
11
  },
12
  compiler: {
13
    // Remove console.log from production except for error logs
14
    removeConsole:
15
      process.env.NODE_ENV === "production" ? { exclude: ["error"] } : false,
16
  },
17
  images: {
18
    domains: ["localhost", "cdn.magicui.design"],
19
  },
20
  async redirects() {
21
    return [
22
      {
23
        source: "/discord",
24
        destination: "https://discord.gg/X4BBMBjHNf",
25
        permanent: true,
26
      },
27
      {
28
        source: "/components",
29
        destination: "/docs/components/animated-beam",
30
        permanent: true,
31
      },
32
      {
33
        source: "/components/:path*",
34
        destination: "/docs/components/:path*",
35
        permanent: true,
36
      },
37
      {
38
        source: "/docs/components",
39
        destination: "/docs/components/animated-beam",
40
        permanent: true,
41
      },
42
    ];
43
  },
44
};
45

46
module.exports = withContentlayer(nextConfig);
47

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.