You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Drift/client/next.config.js

23 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;