-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
29 lines (26 loc) · 829 Bytes
/
next.config.ts
File metadata and controls
29 lines (26 loc) · 829 Bytes
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
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.ts";
import path from "node:path";
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
transpilePackages: ["@t3-oss/env-nextjs", "@t3-oss/env-core"],
experimental: {
optimizePackageImports: ["@mantine/core", "@mantine/hooks"],
},
sassOptions: {
implementation: "sass-embedded",
additionalData: `@use "${path.join(process.cwd(), "_mantine").replace(/\\/g, "/")}" as mantine;`,
},
redirects: async () => [
{
source: "/discord",
destination: "https://discord.gg/dnuQCb3JvR",
permanent: false,
},
],
};
export default nextConfig;