CoastalCommitsPastes/client/next.config.js
2022-03-07 23:45:13 -08:00

22 lines
418 B
JavaScript

const dotenv = require("dotenv");
dotenv.config();
console.log(`${process.env.API_URL}/:path*`);
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
outputStandalone: true,
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${process.env.API_URL}/:path*`,
},
];
},
};
module.exports = nextConfig;