language routing

This commit is contained in:
2021-09-28 13:36:19 +01:00
parent 475c9715fc
commit 5f9d239b50
19 changed files with 206 additions and 82 deletions
+23 -21
View File
@@ -3,20 +3,6 @@ const withStyles = require("@webdeb/next-styles");
//const { nextI18NextRewrites } = require("next-i18next/rewrites");
const nextTranslate = require("next-translate");
//acp
// module.exports = {
// poweredByHeader: false,
// env: {
// API_ROOT: "http://pel-beta-backend",
// GRANT_TYPE: "password",
// USERNAME: "api",
// PASSWORD: "tJRq4o2ZBQ",
// CLIENT_ID: "2d3df41b-9b59-4bbd-85a7-9314125c1689",
// CLIENT_SECRET: "85H8qdrEvKEzbW5",
// },
// ...nextTranslate(),
// };
module.exports = withStyles({
sass: true, // use .scss files
modules: true, // style.(m|module).css & style.(m|module).scss for module files
@@ -37,13 +23,29 @@ module.exports = {
return "pinswg-build-id";
},
poweredByHeader: false,
env: {
// GRANT_TYPE : 'password',
// USERNAME : 'api',
// API_ROOT : "https://api.dev.prevent.internal.rehab",
// PASSWORD : 'B69eQwv7rzPBNcA',
// CLIENT_ID : 'fa1f0ef2-f10f-462e-98a5-843359db6066',
// CLIENT_SECRET : 'B69eQwv7rzPBNcA',
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(),
};