diff --git a/next.config.mjs b/next.config.mjs index 0f74476..98efa41 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -6,8 +6,12 @@ const nextConfig = { domains: [ 'aesculapia-vzw.be', '127.0.0.1', - 'avatars.githubusercontent.com', - 'i.imgur.com', + ], + remotePatterns: [ + { + protocol: 'https', + hostname: '**', + }, ], }, }; diff --git a/pages/admin/webshop/create.tsx b/pages/admin/webshop/create.tsx index d683728..7b80693 100644 --- a/pages/admin/webshop/create.tsx +++ b/pages/admin/webshop/create.tsx @@ -122,6 +122,7 @@ const AdminCreateProducts: NextPage<{ type='number' step={0.01} placeholder='5.31' + required {...register('price', { required: true })} />