refactor: change Image Optimization to custom url

This commit is contained in:
Kentai Radiquum 2024-08-23 04:51:47 +05:00
parent 61e8b74d11
commit ff11a90a5e
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
11 changed files with 100 additions and 28 deletions

View file

@ -2,4 +2,15 @@ const { withPlausibleProxy } = require("next-plausible");
module.exports = withPlausibleProxy({
customDomain: "https://analytics.wah.su",
})({});
})({
images: {
loader: 'custom',
loaderFile: './imageLoader.ts',
remotePatterns: [
{
protocol: "https",
hostname: "anixstatic.com",
},
],
},
});