chore: format whole repository with new configs

This commit is contained in:
Krzysztof Durek
2024-07-15 01:08:18 +02:00
parent 7a5c71cda3
commit 906e8de13b
349 changed files with 3565 additions and 3549 deletions

View File

@@ -3,49 +3,47 @@
* for Docker builds.
*/
import CopyWebpackPlugin from 'copy-webpack-plugin';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import path from "node:path";
import { fileURLToPath } from "node:url";
import CopyWebpackPlugin from "copy-webpack-plugin";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config) => {
config.plugins.push(
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(__dirname, 'templates/**/*.yml'),
to: ({ context, absoluteFilename }) => {
const relativePath = path.relative(
path.resolve(__dirname, 'templates'),
absoluteFilename || context,
);
return path.join(__dirname, '.next', 'templates', relativePath);
},
globOptions: {
ignore: ['**/node_modules/**'],
},
},
],
})
);
return config;
reactStrictMode: true,
webpack: (config) => {
config.plugins.push(
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(__dirname, "templates/**/*.yml"),
to: ({ context, absoluteFilename }) => {
const relativePath = path.relative(
path.resolve(__dirname, "templates"),
absoluteFilename || context,
);
return path.join(__dirname, ".next", "templates", relativePath);
},
globOptions: {
ignore: ["**/node_modules/**"],
},
},
],
}),
);
return config;
},
},
/**
* If you are using `appDir` then you must comment the below `i18n` config out.
*
* @see https://github.com/vercel/next.js/issues/41980
*/
i18n: {
locales: ["en"],
defaultLocale: "en",
},
/**
* If you are using `appDir` then you must comment the below `i18n` config out.
*
* @see https://github.com/vercel/next.js/issues/41980
*/
i18n: {
locales: ["en"],
defaultLocale: "en",
},
};
export default nextConfig;