Files
my-links/next.config.js
Sonny 255f50080a Add translation (#9)
* 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
2023-11-11 00:08:30 +01:00

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;