sf-e00 / next.config.js
jordonpeter01's picture
Add 12 files
49715c3
raw
history blame contribute delete
817 Bytes
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',
},
},
};