-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
33 lines (29 loc) · 953 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "bkeiikprhrwohskvmxkd.supabase.co",
port: "",
pathname: "/storage/v1/object/public/banners/**",
},
{
protocol: "https",
hostname: "bkeiikprhrwohskvmxkd.supabase.co",
port: "",
pathname: "/storage/v1/object/public/avatars/**",
},
],
},
// Configure `pageExtensions`` to include MDX files
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
// Optionally, add any other Next.js config below
};
const isProd = process.env.NODE_ENV === "production";
const withPWA = require("next-pwa")({
dest: "public",
disable: !isProd,
});
const withMDX = require("@next/mdx")();
module.exports = withPWA(withMDX(nextConfig));