NextJS Notes

From bibbleWiki
Revision as of 01:31, 7 October 2023 by Iwiseman (talk | contribs) (Created page with "=Introduction= This page is meant to capture parts of NextJS not covered by React =External Images= When using external images on a page you next to specify the allowed domains const nextConfig = { images: { remotePatterns: [ { protocol: "https", hostname: "images.unsplash.com", }, ], }, experimental: { serverActions: true, }, };")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This page is meant to capture parts of NextJS not covered by React

External Images

When using external images on a page you next to specify the allowed domains


const nextConfig = {

   images: {
     remotePatterns: [
       {
         protocol: "https",
         hostname: "images.unsplash.com",
       },
     ],
   },
   experimental: {
     serverActions: true,
   },
 };