-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
48 lines (42 loc) · 1.08 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { fileURLToPath } from "url";
import createJiti from "jiti";
// Import env files to validate at build time. Use jiti so we can load .ts files in here.
createJiti(fileURLToPath(import.meta.url))("./src/env");
/** @type {import("next").NextConfig} */
const config = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "pub-4bf8804d3efc464b862de36f974618d4.r2.dev",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "cdn.discordapp.com",
},
{
protocol: "https",
hostname: "ui-avatars.com",
},
{
protocol: "https",
hostname: "upload.wikimedia.org",
},
{
protocol: "https",
hostname: "i.scdn.co",
},
],
},
reactStrictMode: true,
/** We already do linting and typechecking as separate tasks in CI */
eslint: { ignoreDuringBuilds: true },
typescript: { ignoreBuildErrors: true },
// Use SWC for faster compilation
swcMinify: true,
};
export default config;