-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
83 lines (64 loc) · 1.86 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
73
74
75
76
77
78
79
80
81
82
83
/** @type {import('next').NextConfig} */
require("react-select");
module.exports = {
env: {
mongodb_password: process.env.mongodb_password,
mongodb_username: process.env.mongodb_username,
mongodb_uri: process.env.mongodb_uri,
},
images: {
domains: ["img.sndimg.com"],
},
reactStrictMode: true,
eslint: {
dirs: [
"components/Allergens/Allergens.jsx",
"components/Badges/Badges.jsx",
// Buttons
"components/Buttons/FloatingButton/FloatingButton.jsx",
"components/ViewRecipeButton/ViewRecipeButton.jsx",
// Cards
"components/Cards/FaveCard.jsx",
"components/Cards/LoadingCard.jsx",
"components/Cards/RecipeCard.jsx",
"components/Cards/Title.jsx",
// Categories
"components/categories/categories.jsx",
// Context
"components/Context/CurrentPageContexts/CurrentHomePage.jsx",
"components/Context/Favorites-context.jsx",
// Descriptions
// Footer
// Ingredients
"components/Ingredients/Ingredients.jsx",
"components/Ingredients/IngredientsList.jsx",
// Instructions
"components/Instructions/Instructions.jsx",
// Landing
"components/Landing/Hero.jsx",
// LayOuts
"components/LayOuts/Header/Navigation.jsx",
// SearchBar
"components/searchBar/searchBar.jsx",
// Sort
"components/sort/sort.jsx",
// Tags
"components/Tags/Tags.jsx",
// Helpers
"helpers/mongoDB-utils.js",
// API's
"pages/api/combined",
"pages/api/search/similarRecipes",
// Pages
"pages/favorites",
"pages/index.jsx",
],
},
webpack: (config, { dev }) => {
if (dev) {
config.resolve.alias["react-dom$"] = "react-dom/profiling";
config.resolve.alias["scheduler/tracing"] = "scheduler/tracing-profiling";
}
return config;
},
};