Skip to content

Commit

Permalink
Merge pull request #1973 from bcgov/1964-upload-bug
Browse files Browse the repository at this point in the history
1964 upload bug
  • Loading branch information
BCerki authored Jul 19, 2024
2 parents ce72f7b + c903a5e commit b4167b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion bc_obps/bc_obps/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@

CORS_ALLOWED_ORIGINS = ["http://localhost:3000"]

DATA_UPLOAD_MAX_MEMORY_SIZE = 20000000
DATA_UPLOAD_MAX_MEMORY_SIZE = 25000000
FILE_UPLOAD_MAX_MEMORY_SIZE = 20000000


# Only enable sentry in production
Expand Down
2 changes: 1 addition & 1 deletion bciers/apps/registration1/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const nextConfig = {
},
experimental: {
serverActions: {
bodySizeLimit: "20mb",
bodySizeLimit: "25mb",
},
},
nx: {
Expand Down
14 changes: 7 additions & 7 deletions bciers/next.config.base.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/** @type {import('next').NextConfig} */
module.exports = {
const logAndReturnConfig = (config) => {
console.log("Next.js base config is being loaded");
return config;
};
module.exports = logAndReturnConfig({
reactStrictMode: true,
swcMinify: true,
output: "standalone",

//use modularizeImports properties to optimize the imports in the application
modularizeImports: {
"@mui/icons-material": {
Expand All @@ -12,9 +17,4 @@ module.exports = {
transform: "@mui/material/{{member}}",
},
},
experimental: {
serverActions: {
bodySizeLimit: "20mb",
},
},
};
});

0 comments on commit b4167b4

Please sign in to comment.