diff --git a/image-loader.js b/image-loader.js new file mode 100644 index 0000000..e5847f0 --- /dev/null +++ b/image-loader.js @@ -0,0 +1,11 @@ +const cdnUrl = 'https://balatromp.b-cdn.net' + +export default function bunnyLoader({ src, width, quality }) { + if (!cdnUrl) { + throw new Error('missing NEXT_PUBLIC_CDN_URL env variable.') + } + const params = new URLSearchParams() + params.set('width', width.toString()) + params.set('quality', (quality || 100).toString()) + return `${cdnUrl}${src}?${params.toString()}` +} diff --git a/next.config.mjs b/next.config.mjs index 9ea1256..84760ba 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -10,6 +10,10 @@ const withMDX = createMDX() /** @type {import("next").NextConfig} */ const config = { output: 'standalone', + images: { + loader: 'custom', + loaderFile: './image-loader.js', + }, } const withNextIntl = createNextIntlPlugin() export default withNextIntl(withMDX(config)) diff --git a/src/app/(home)/log-parser/page.tsx b/src/app/(home)/log-parser/page.tsx index 98aa795..2c07741 100644 --- a/src/app/(home)/log-parser/page.tsx +++ b/src/app/(home)/log-parser/page.tsx @@ -928,7 +928,10 @@ export default function LogParser() {
-
- Support Multiplayer Mod development{' '}
-
+ Your support helps us continue developing and maintaining Balatro Multiplayer
-
-
- Support the development of this website{' '}
-
+ Your contribution helps us add new features, fix bugs, and maintain the multiplayer experience for everyone. +
++ Your contribution helps us improve the website, add new features, and keep the servers running smoothly. +
++ Balatro Multiplayer is a community-driven project maintained by volunteers. Your support directly contributes to server costs, development time, and the continued improvement of the multiplayer experience for all players.