-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
44 lines (42 loc) · 1.25 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
// const loader = () => {
// let config = {};
// if (process.env.GITHUB_REPOSITORY_OWNER) {
// config = {
// publicRuntimeConfig: {
// basePath: "/Portfolio" ,
// },
// basePath: "/Portfolio",
// assetPrefix: "/Portfolio",
// images: {
// loader: "imgix",
// },
// };
// return config;
// } else if (process.env.NEXT_PUBLIC_BASE_PATH) {
// return {
// images: {
// loader: "imgix",
// // path: `${process.env.HOST}/${process.env.NEXT_PUBLIC_BASE_PATH}`,
// },
// };
// }
// };
module.exports = {
// ...loader(),
// images: {
// unoptimized: true,
// },
env: {
// declare here all your variables
// BASE_URL: process.env.BASE_URL,
REST_URL: process.env.REST_URL,
API_KEY: process.env.API_KEY,
APP_ID: process.env.APP_ID,
MEASUREMENT_ID: process.env.MEASUREMENT_ID,
AUTH_DOMAIN: process.env.AUTH_DOMAIN,
PROJECT_ID: process.env.PROJECT_ID,
STORAGE_BUCKET: process.env.STORAGE_BUCKET,
MESSAGING_SENDER_ID: process.env.MESSAGING_SENDER_ID,
},
};
//VERCEL_URL