From 6f91f41103704cb5f35bb77e47ac5793a6ec8142 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 9 Jan 2023 04:03:52 +0100 Subject: [PATCH] Add missing rewritten next config. --- frontend/next.config.mjs | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 frontend/next.config.mjs diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs new file mode 100644 index 0000000..c0a962b --- /dev/null +++ b/frontend/next.config.mjs @@ -0,0 +1,53 @@ +// @ts-check + +/** + * Copyright (C) 2019-2021 Carl Kittelberger + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import withPlugins from 'next-compose-plugins'; +// import optimizedImages from 'next-optimized-images'; + +/** + * @type {import('next').NextConfig} + */ +const nextConfig = { + reactStrictMode: false, + compiler: { + styledComponents: true, + }, +}; + +// const nextConfig = withPlugins( +// [ +// /*[ +// optimizedImages, +// { +// // config for next-optimized-images +// inlineImageLimit: -1, +// }, +// ],*/ + +// // your other plugins here +// ], +// { +// /*images: { +// // This is set due to next-optimized-images, see // See https://github.com/cyrilwanner/next-optimized-images/issues/251#issuecomment-867250968 +// disableStaticImages: true, +// },*/ +// } +// ); + +export default nextConfig;