Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix React Admin on new next version #477

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
remotePatterns: [
{
// TODO: neviem, preco to krici, treba overit, ci funguju obrazky pri ulohach
// @ts-ignore

Check warning on line 29 in next.config.ts

View workflow job for this annotation

GitHub Actions / branch-test

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
protocol: process.env.NEXT_PUBLIC_BE_PROTOCOL,
// @ts-ignore

Check warning on line 31 in next.config.ts

View workflow job for this annotation

GitHub Actions / branch-test

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
hostname: process.env.NEXT_PUBLIC_BE_HOSTNAME,
port: process.env.NEXT_PUBLIC_BE_PORT,
pathname: '/media/**',
Expand All @@ -36,15 +36,10 @@
],
},
reactStrictMode: true,
modularizeImports: {
'@mui/material': {
transform: '@mui/material/{{member}}',
},
},
// https://react-svgr.com/docs/next/
webpack(config) {
// Grab the existing rule that handles SVG imports
const fileLoaderRule = config.module.rules.find((rule: any) => rule.test?.test?.('.svg'))

Check warning on line 42 in next.config.ts

View workflow job for this annotation

GitHub Actions / branch-test

Unexpected any. Specify a different type

config.module.rules.push(
// Reapply the existing rule, but only for svg imports ending in ?url
Expand Down
Loading