-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
72 lines (70 loc) · 4.2 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
env: {
VITE_INFURA_KEY: process.env.VITE_INFURA_KEY,
BACKEND_URL: process.env.BACKEND_URL,
WHITELISTED_ADDRESSES: process.env.WHITELISTED_ADDRESSES,
TINYMCE_API_KEY: process.env.TINYMCE_API_KEY,
FEATURED_PROJECT_ID: process.env.FEATURED_PROJECT_ID,
LIVEPEER_API_KEY: process.env.LIVEPEER_API_KEY,
GRAPHQL_ENDPOINT: process.env.GRAPHQL_ENDPOINT,
},
redirects: async () => [
{
source: '/',
destination: 'https://www.radardao.xyz/launch',
permanent: false,
basePath: false,
},
],
// see https://github.com/vercel/next.js/pull/53483/files
// modularizeImports: {
// "lucide-react": {
// // Note that we need to first resolve to the base path (`lucide-react`) and join the subpath,
// // instead of just resolving `lucide-react/esm/icons/{{kebabCase member}}` because this package
// // doesn't have proper `exports` fields for individual icons in its package.json.
// transform: {
// // Special aliases
// "(SortAsc|LucideSortAsc|SortAscIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/arrow-up-narrow-wide!lucide-react",
// "(SortDesc|LucideSortDesc|SortDescIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/arrow-down-wide-narrow!lucide-react",
// "(Verified|LucideVerified|VerifiedIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/badge-check!lucide-react",
// "(Slash|LucideSlash|SlashIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/ban!lucide-react",
// "(CurlyBraces|LucideCurlyBraces|CurlyBracesIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/braces!lucide-react",
// "(CircleSlashed|LucideCircleSlashed|CircleSlashedIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/circle-slash-2!lucide-react",
// "(SquareGantt|LucideSquareGantt|SquareGanttIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/gantt-chart-square!lucide-react",
// "(SquareKanbanDashed|LucideSquareKanbanDashed|SquareKanbanDashedIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/kanban-square-dashed!lucide-react",
// "(SquareKanban|LucideSquareKanban|SquareKanbanIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/kanban-square!lucide-react",
// "(Edit3|LucideEdit3|Edit3Icon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/pen-line!lucide-react",
// "(Edit|LucideEdit|EditIcon|PenBox|LucidePenBox|PenBoxIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/pen-square!lucide-react",
// "(Edit2|LucideEdit2|Edit2Icon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/pen!lucide-react",
// "(Stars|LucideStars|StarsIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/sparkles!lucide-react",
// "(TextSelection|LucideTextSelection|TextSelectionIcon)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/text-select!lucide-react",
// // General rules
// "Lucide(.*)":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/{{ kebabCase memberMatches.[1] }}!lucide-react",
// "(.*)Icon":
// "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/{{ kebabCase memberMatches.[1] }}!lucide-react",
// "*": "modularize-import-loader?name={{ member }}&from=default&as=default&join=./icons/{{ kebabCase member }}!lucide-react",
// },
// },
// },
};
module.exports = withBundleAnalyzer(nextConfig);