File size: 817 Bytes
49715c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
module.exports = {
 trailingSlash: true,
 // Set the header: null value for all pages.
 headers: async () => [
    {
      source: '/*',
      headers: [
        {
          key: 'Cache-Control',
          value: 'public, max-age=0, must-revalidate',
        },
        {
          key: 'Server',
          value: 'Terrible',
        },
        {
          key: 'X-forwarded-From',
          value: 'host:8000',
        },
      ],
    },
 ],
 exportPathMap() {
    return {
      "/": { page: "/" },
      "/about": { page: "/about" },
      "/contact": { page: "/contact" },
      "/todos": { page: "/todos" },
    };
 },
 target: "server",
 distDir: ".next",
 publicRuntimeConfig: {
    // Will be available on both server and client
    publicRuntimeConfig: {
      API_URL: 'http://localhost:3000',
    },
 },
};