-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
24 lines (22 loc) · 784 Bytes
/
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
const path = require("path");
require("dotenv").config();
module.exports = {
env: {
API_URL: process.env.API_URL,
},
onDemandEntries: {
maxInactiveAge: 35 * 1000,
pagesBufferLength: 5,
},
target: "serverless",
webpack: (config, options) => {
config.resolve.alias["components"] = path.join(__dirname, "components");
config.resolve.alias["data"] = path.join(__dirname, "data");
config.resolve.alias["helpers"] = path.join(__dirname, "helpers");
config.resolve.alias["schemas"] = path.join(__dirname, "schemas");
config.resolve.alias["assets"] = path.join(__dirname, "assets");
config.resolve.alias["public"] = path.join(__dirname, "public");
config.resolve.alias["types"] = path.join(__dirname, "types");
return config;
},
};