Tag: nextjs

  • Next.js CheatSheet

    .htaccess file for static Next.js build You can generate the static html version of nextjs through: This will generate the static version of your site in /out folder. You can copy that out folder to the root of your webhosting, e.g. in public_html/ Then add this .htaccess file to the same folder if required: Loop […]

  • NextJS import images dynamically from directory

    We can import images directly from a folder in nextjs and use their original path and filename by using the code below. Routinely, we import the image that we want to show on the page using import statement like this: However, we can avoid doing that and use dynamic method like this: Example with Splide […]

Hire Me!