85 lines
2.5 KiB
JavaScript
85 lines
2.5 KiB
JavaScript
// 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",
|
|
},
|
|
{
|
|
source: "/manyliondns",
|
|
destination: "/dnsdetails",
|
|
},
|
|
{
|
|
source: "/canlyniadauchwilio",
|
|
destination: "/searchresults",
|
|
},
|
|
{
|
|
source: "/fymhorth/canlyniadauchwilio",
|
|
destination: "/myportal/searchresults",
|
|
},
|
|
{
|
|
source: "/chwiliouwch",
|
|
destination: "/advancedsearch",
|
|
},
|
|
{
|
|
source: "/fymhorth/chwiliouwch",
|
|
destination: "/myportal/advancedsearch",
|
|
},
|
|
{
|
|
source: "/fymhorth",
|
|
destination: "/myportal",
|
|
},
|
|
{
|
|
source: "/achos",
|
|
destination: "/case",
|
|
},
|
|
{
|
|
source: "/fymhorth/achos",
|
|
destination: "/myportal/case",
|
|
},
|
|
{
|
|
source: "/allgofnodi",
|
|
destination: "/logout",
|
|
},
|
|
{
|
|
source: "/apelnewydd",
|
|
destination: "/newappeal",
|
|
},
|
|
{
|
|
source: "/apelnewydd/:path*",
|
|
destination: "/newappeal/:path*",
|
|
},
|
|
|
|
// {
|
|
// source: "/cy:path*",
|
|
// destination: "http://cyrmu.local/:path*",
|
|
// },
|
|
];
|
|
},
|
|
...nextTranslate(),
|
|
};
|