forked from myriadsocial/myriad-federated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
43 lines (40 loc) · 1.16 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
/** @type {import('next').NextConfig} */
const {
APP_SECRET,
NEXT_PUBLIC_APP_NAME,
NEXT_PUBLIC_APP_AUTH_URL,
NEXT_PUBLIC_MYRIAD_WEBSITE_URL,
NEXT_PUBLIC_MYRIAD_SUPPORT_MAIL,
NEXT_PUBLIC_MYRIAD_RPC_URL,
NEXT_PUBLIC_MYRIAD_APP_URL,
} = process.env;
const nextConfig = {
compiler: {
emotion: true,
},
images: {
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
remotePatterns: [
{
protocol: 'https',
hostname: '*',
},
],
},
reactStrictMode: true,
serverRuntimeConfig: {
appSecret: APP_SECRET ?? 'd98b4af078b46a9984829a72030976e0',
},
publicRuntimeConfig: {
appName: NEXT_PUBLIC_APP_NAME ?? 'Federated Local',
appAuthURL: NEXT_PUBLIC_APP_AUTH_URL ?? 'http://localhost:3000',
myriadWebsiteURL: NEXT_PUBLIC_MYRIAD_WEBSITE_URL ?? 'https://myriad.social',
myriadSupportMail:
NEXT_PUBLIC_MYRIAD_SUPPORT_MAIL ?? '[email protected]',
myriadRPCURL: NEXT_PUBLIC_MYRIAD_RPC_URL ?? 'ws://localhost:9944',
myriadAppURL:
NEXT_PUBLIC_MYRIAD_APP_URL ?? 'https://app.testnet.myriad.social',
},
};
module.exports = nextConfig;