-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.ts
More file actions
35 lines (31 loc) · 848 Bytes
/
next.config.ts
File metadata and controls
35 lines (31 loc) · 848 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
30
31
32
33
34
35
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
// Using require for next-pwa as it doesn't always export types perfectly for ESM
const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV === "development",
register: true,
skipWaiting: true,
});
const withNextIntl = createNextIntlPlugin("./i18n.ts");
const nextConfig: NextConfig = {
/* config options here */
transpilePackages: ["next-intl"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "m.media-amazon.com", // For Mock Data
},
{
protocol: "https",
hostname: "placehold.co", // For placeholders
},
{
protocol: "https",
hostname: "**",
},
],
},
};
export default withPWA(withNextIntl(nextConfig));