You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mvfront-react/next.config.js

46 lines
1.1 KiB

const { i18n } = require("./next-i18next.config");
module.exports = {
i18n,
// See https://github.com/netlify/netlify-plugin-nextjs/issues/223
// unstableNetlifyFunctionsSupport: {
// "pages/index.jsx": {
// includeDirs: ["public"],
// },
// "pages/faq.jsx": {
// includeDirs: ["public"],
// },
// "pages/legal-notices.jsx": {
// includeDirs: ["public"],
// },
// "pages/new/confirm/[pid].jsx": {
// includeDirs: ["public"],
// },
// "pages/new.jsx": {
// includeDirs: ["public"],
// },
// "pages/result/[pid]/[[...tid]].jsx": {
// includeDirs: ["public"],
// },
// "pages/vote/[pid]/[[...tid]].jsx": {
// includeDirs: ["public"],
// },
// "pages/vote/[pid]/confirm.jsx": {
// includeDirs: ["public"],
// },
// "pages/privacy-policy.jsx": {
// includeDirs: ["public"],
// },
// },
pageExtensions: ["mdx", "jsx", "js", "ts", "tsx"],
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
return config;
},
// target: "experimental-serverless-trace",
};