Make all versions of next and react match

This commit is contained in:
Darren Clarke 2023-05-25 06:30:36 +00:00
parent 656f3fbe71
commit 935290bbdc
7 changed files with 2459 additions and 4127 deletions

View file

@ -23,6 +23,10 @@ export default withAuth(
const authorizedDomains = ["redaranj.com", "digiresilience.org"];
const userDomain = token?.email?.toLowerCase().split("@").pop() ?? "unauthorized.net";
if (authorizedDomains.includes(userDomain)) {
return true;
}
return false;
},
}

View file

@ -1,4 +1,5 @@
module.exports = {
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
rewrites: async () => ({
fallback: [
@ -9,3 +10,5 @@ module.exports = {
],
}),
};
module.exports = nextConfig;

View file

@ -27,11 +27,11 @@
"graphql-request": "^6.1.0",
"http-proxy-middleware": "^2.0.6",
"material-ui-popup-state": "^5.0.8",
"next": "^13",
"next": "13.4.3",
"next-auth": "^4.22.1",
"next-http-proxy-middleware": "^1.2.5",
"react": "^18",
"react-dom": "^18",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-iframe": "^1.8.5",
"react-polyglot": "^0.7.2",
"sharp": "^0.32.1",
@ -39,7 +39,7 @@
},
"devDependencies": {
"@babel/core": "^7.21.8",
"@types/react": "^18",
"@types/react": "18.2.7",
"@types/uuid": "^9.0.1",
"babel-loader": "^9.1.2",
"eslint": "^8.41.0",
@ -50,6 +50,6 @@
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"typescript": "^5.0.4"
"typescript": "5.0.4"
}
}

View file

@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
@ -14,6 +14,9 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./*"]
},
"baseUrl": "."
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],