|
3 | 3 | * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. |
4 | 4 | * This is especially useful for Docker builds. |
5 | 5 | */ |
6 | | -!process.env.SKIP_ENV_VALIDATION && (await import('./src/env/server.mjs')); |
| 6 | +!process.env.SKIP_ENV_VALIDATION && (await import("./src/env/server.mjs")); |
7 | 7 | // import { withNx } from '@nx/next/plugins/with-nx.js'; |
8 | 8 |
|
9 | 9 | // const withBundleAnalyzer = require("@next/bundle-analyzer")({ |
|
14 | 14 | * @type {import('next').NextConfig} |
15 | 15 | */ |
16 | 16 | const nextConfig = { |
17 | | - /* config options here */ |
18 | | - // swcMinify: true, |
19 | | - // experimental: { |
20 | | - // appDir: true, |
21 | | - // newNextLinkBehavior: true, |
22 | | - // forceSwcTransforms: true, |
23 | | - // // fontLoaders: [ |
24 | | - // // { loader: '@next/font/google', options: { subsets: ['latin'] } }, |
25 | | - // // ], |
26 | | - // }, |
27 | | - reactStrictMode: true, |
28 | | - // i18n: { |
29 | | - // locales: ["en"], |
30 | | - // defaultLocale: "en", |
31 | | - // }, |
32 | | - staticPageGenerationTimeout: 120, |
33 | | - images: { |
34 | | - domains: [ |
35 | | - 'avatars.githubusercontent.com', |
36 | | - 'cote.azureedge.net', |
37 | | - 'res.cloudinary.com', |
38 | | - 'tailwindui.com', |
39 | | - ], |
40 | | - }, |
41 | | - rewrites: async () => [ |
42 | | - { |
43 | | - source: '/rss.xml', |
44 | | - destination: '/api/rss', |
45 | | - }, |
46 | | - { |
47 | | - source: '/rss', |
48 | | - destination: '/api/rss', |
49 | | - }, |
50 | | - { |
51 | | - source: '/rss.json', |
52 | | - destination: '/api/rss?type=json', |
53 | | - }, |
54 | | - { |
55 | | - source: '/rss2.xml', |
56 | | - destination: '/api/rss?type=rss', |
57 | | - }, |
58 | | - ], |
| 17 | + typescript: { |
| 18 | + ignoreBuildErrors: true, |
| 19 | + }, |
| 20 | + eslint: { |
| 21 | + ignoreDuringBuilds: true, |
| 22 | + }, |
| 23 | + /* config options here */ |
| 24 | + // swcMinify: true, |
| 25 | + // experimental: { |
| 26 | + // appDir: true, |
| 27 | + // newNextLinkBehavior: true, |
| 28 | + // forceSwcTransforms: true, |
| 29 | + // // fontLoaders: [ |
| 30 | + // // { loader: '@next/font/google', options: { subsets: ['latin'] } }, |
| 31 | + // // ], |
| 32 | + // }, |
| 33 | + reactStrictMode: true, |
| 34 | + // i18n: { |
| 35 | + // locales: ["en"], |
| 36 | + // defaultLocale: "en", |
| 37 | + // }, |
| 38 | + staticPageGenerationTimeout: 120, |
| 39 | + images: { |
| 40 | + domains: [ |
| 41 | + "avatars.githubusercontent.com", |
| 42 | + "cote.azureedge.net", |
| 43 | + "res.cloudinary.com", |
| 44 | + "tailwindui.com", |
| 45 | + ], |
| 46 | + }, |
| 47 | + rewrites: async () => [ |
| 48 | + { |
| 49 | + source: "/rss.xml", |
| 50 | + destination: "/api/rss", |
| 51 | + }, |
| 52 | + { |
| 53 | + source: "/rss", |
| 54 | + destination: "/api/rss", |
| 55 | + }, |
| 56 | + { |
| 57 | + source: "/rss.json", |
| 58 | + destination: "/api/rss?type=json", |
| 59 | + }, |
| 60 | + { |
| 61 | + source: "/rss2.xml", |
| 62 | + destination: "/api/rss?type=rss", |
| 63 | + }, |
| 64 | + ], |
59 | 65 | }; |
60 | 66 |
|
61 | 67 | export default nextConfig; |
0 commit comments