forked from Instyc/App-Servicios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
42 lines (38 loc) · 1.05 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
// const withPWA = require('next-pwa')
// const runtimeCaching = require('next-pwa/cache')
module.exports = {
env: {
NEXT_PUBLIC_API: process.env.API || "http://localhost:1337" //"https://servia.herokuapp.com"
},
serverRuntimeConfig: {
// Will only be available on the server side
mySecret: "secret",
},
publicRuntimeConfig: {
// Will be available on both server and client
},
images: {
domains: ['http://localhost:1337','https://servia.herokuapp.com'],
},
};
// module.exports = withPWA({
// pwa: {
// dest: "public",
// register: true,
// skipWaiting: true,
// runtimeCaching,
// },
// env: {
// NEXT_PUBLIC_API: process.env.API || "http://localhost:1337", //"https://servia.herokuapp.com"
// },
// serverRuntimeConfig: {
// // Will only be available on the server side
// mySecret: "secret",
// },
// publicRuntimeConfig: {
// // Will be available on both server and client
// },
// images: {
// domains: ["http://localhost:1337", "https://servia.herokuapp.com"],
// },
// });