// next.config.js const withStyles = require("@webdeb/next-styles"); //const { nextI18NextRewrites } = require("next-i18next/rewrites"); const nextTranslate = require("next-translate"); module.exports = withStyles({ sass: true, // use .scss files modules: true, // style.(m|module).css & style.(m|module).scss for module files sassLoaderOptions: { sassOptions: { includePaths: [ "/styles/sass", "node_modules/govuk-frontend/govuk/all", "/styles/sass/patterns", "/styles/sass/prevent-training", ], // @import 'variables'; # loads (src/styles/varialbes.scss), you got it.. }, }, }); module.exports = { generateBuildId: async () => { // You can, for example, get the latest git commit hash here return "pinswg-build-id"; }, poweredByHeader: false, async rewrites() { return [ { source: "/ceisiadaudns", destination: "/dnsapplications", // The :path parameter isn't used here so will be automatically passed in the query }, { source: "/manyliondns", destination: "/dnsdetails", // The :path parameter isn't used here so will be automatically passed in the query }, { source: "/canlyniadauchwilio", destination: "/searchresults", // The :path parameter isn't used here so will be automatically passed in the query }, { source: "/achos", destination: "/case", }, { source: "/cy:path*", destination: "http://cyrmu.local/:path*", }, ]; }, ...nextTranslate(), };