fastpocket/Frontend/next.config.js

38 lines
702 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
compiler: {
// Enables the styled-components SWC transform
styledComponents: true
},
rewrites: async () => [
{
source: "/docs",
destination: "/docs/index.html",
},
],
webpack(config) {
config.resolve.fallback = {
// if you miss it, all the other options in fallback, specified
// by next.js will be dropped.
...config.resolve.fallback,
fs: false, // the solution
};
return config;
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
port: "",
pathname: "**",
},
],
},
};
module.exports = nextConfig;