mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
* feat(wip): translation * fix: some i18n errors + use ssr translation * fix: i18next implementation * fix: tsc errors * feat: i18n middleware * feat: translate link view home page * feat: translate quick actions * feat: translate search modal * feat: translate side menu * feat: native error boundary + translation * feat: translate error pages * feat: translate category forms * feat: translate link forms * refactor: LangSelector is no longer absolute by default
25 lines
483 B
JavaScript
25 lines
483 B
JavaScript
const { i18n } = require("./next-i18next.config");
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
i18n,
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
use: ["@svgr/webpack"],
|
|
});
|
|
|
|
return config;
|
|
},
|
|
images: {
|
|
domains: ["localhost", "t3.gstatic.com", "lh3.googleusercontent.com"],
|
|
formats: ["image/webp"],
|
|
},
|
|
reactStrictMode: false,
|
|
experimental: {
|
|
webpackBuildWorker: true,
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|