-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.mjs
37 lines (34 loc) · 1.28 KB
/
next.config.mjs
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
import WithPWA from "next-pwa";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
]
},
env: {
ZION_API_URL: process.env.ZION_API_URL,
ZION_API_KEY: process.env.ZION_API_KEY,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET,
MODULE_ADDRESS: process.env.MODULE_ADDRESS,
CRASH_RESOURCE_ACCOUNT_ADDRESS: process.env.CRASH_RESOURCE_ACCOUNT_ADDRESS,
LP_RESOURCE_ACCOUNT_ADDRESS: process.env.LP_RESOURCE_ACCOUNT_ADDRESS,
Z_APT_RESOURCE_ACCOUNT_ADDRESS: process.env.Z_APT_RESOURCE_ACCOUNT_ADDRESS,
ADMIN_ACCOUNT_PRIVATE_KEY: process.env.ADMIN_ACCOUNT_PRIVATE_KEY,
FUNDING_ACCOUNT_PRIVATE_KEY: process.env.FUNDING_ACCOUNT_PRIVATE_KEY,
ADMIN_ACCOUNTS: process.env.ADMIN_ACCOUNTS,
},
};
const withPWA = WithPWA({
dest: "public", // Destination directory for the PWA files
// disable: process.env.NODE_ENV === "development", // Disable PWA in development mode
register: true, // Register the PWA service worker
skipWaiting: true, // Skip waiting for service worker activation
})
export default withPWA(nextConfig);