themeselection / materio-mui-nextjs-admin-template-free

An enterprise-grade Next.js admin dashboard template. Made with developer experience first: Next.js v14 (App Router), Material UI (MUI), Tailwind CSS, TypeScript, ESLint, Prettier, VSCode Configs !! 🚀
https://themeselection.com/item/materio-free-mui-nextjs-admin-template
MIT License
1.57k stars 543 forks source link

ssamal2801 - issue#17 - fixed image error with base url #23

Closed ssamal2801 closed 2 months ago

ssamal2801 commented 8 months ago

The issue you were facing was that when you were changing the base URL in the Next.js config file in step one of your issue description, you were changing the root directory of the project.

For this reason, the images are now available at "/apps/materio/images...." instead of "/images...".

I have corrected the image url and both the next.js config files.

Now your served files should work as expected with images. You do not need to change the base route every time you switch between local or remote NGINX servers. You can access them both at the same base route:

Example:

image

image

neelbrahmakshatriya commented 2 months ago

Hi @ssamal2801,

Thanks for showing an interest in contributing.

Most of the users might not need this change in their apps. If someone does this, the app will not work at http://localhost:3000 URL.

Thus, we are not considering merging this PR.