forked from mrwyndham/fastpocket
32 lines
607 B
JavaScript
32 lines
607 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
compiler: {
|
|
// Enables the styled-components SWC transform
|
|
styledComponents: true
|
|
},
|
|
|
|
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;
|