We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30cab41 commit ed8fc6fCopy full SHA for ed8fc6f
next.config.js
@@ -19,9 +19,19 @@ const nextConfig = {
19
};
20
21
const withTypescript = require('@zeit/next-typescript');
22
+
23
+const prodConfig = {
24
+ API_ENDPOINT: 'https://us-central1-ajonp-ajs-books.cloudfunctions.net/api/'
25
+};
26
27
+const devConfig = {
28
+ API_ENDPOINT: 'http://localhost:5001/ajonp-ajs-books/us-central1/api/'
29
30
31
module.exports = withTypescript(
32
{
- target: 'serverless'
33
+ target: 'serverless',
34
+ env: process.env.NODE_ENV === 'production' ? prodConfig : devConfig
35
},
36
withBundleAnalyzer(nextConfig)
37
);
0 commit comments