* refactor: switch from Fetch API to Axios * fix: remove unwanted changes * fix: rewrite error handling for Axios and remove IPv4 first setting * style: run prettier * style: run prettier * fix: add back custom proxy agent * fix: add back custom proxy agent * fix: correct rebase issue * fix: resolve review comments
30 lines
576 B
JavaScript
30 lines
576 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
module.exports = {
|
|
env: {
|
|
commitTag: process.env.COMMIT_TAG || 'local',
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{ hostname: 'gravatar.com' },
|
|
{ hostname: 'image.tmdb.org' },
|
|
{ hostname: 'artworks.thetvdb.com' },
|
|
{ hostname: 'plex.tv' },
|
|
],
|
|
},
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
issuer: /\.(js|ts)x?$/,
|
|
use: ['@svgr/webpack'],
|
|
});
|
|
|
|
return config;
|
|
},
|
|
experimental: {
|
|
scrollRestoration: true,
|
|
largePageDataBytes: 256000,
|
|
},
|
|
};
|