materio-mui-react-nextjs-admin-template-free icon indicating copy to clipboard operation
materio-mui-react-nextjs-admin-template-free copied to clipboard

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

Open ssamal2801 opened this issue 1 year ago • 0 comments

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:

  • For local - localhost:3000/apps/materio (instead of localhost:3000/)
  • and for NGINX - 128.3.4.5:8900/apps/materio (instead of 128.3.4.5:8900)

image

image

ssamal2801 avatar Jan 04 '24 00:01 ssamal2801