ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

Vercel and Cloudinary giving INVALID_IMAGE_OPTIMIZE_REQUEST in Nextjs 

Categories: Reactjs

When using Nextjs image they will work fine locally, but you need to configure the trusted domains for deployments on real domains.

module.exports = {
  images: {
    formats: ['image/avif', 'image/webp'],
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'res.cloudinary.com',
        port: '',
        pathname: '/YOUR-ACCOUNT/**',
      },
    ],
  },
}

Graphql 

Categories: GraphQL

Basics

Modeling Errors in GraphQL (errors)

Implement it yourself

Mocking, Stitching, Scalars, Mesh, Inspector, ...

Namespacing

Security

As a service with Hasura

Why Graphql?

More

 

Kubernetes 

Categories: Kubernetes

Kubernetes - Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it. 

Categories: Docker Kubernetes

When using Docker Desktop it comes with an out of the box Kubernetes cluster.

However you might run into 

Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

when trying to run your first 'kubectl create -f some-pod-definition.yaml' command.

And that's just because you forgot to enable it: Setting > Kubernetes > Enable Kubernetes

Add existing Git repository to Github 

Categories: Git
  • Create a new repository on github, without any files like readme, license, ...
  • Copy the Github repository REMOTE_URL
  • Open cmd in your existing git repository
  • git remote add origin  <REMOTE_URL>
  • git remote -v
  • git push --set-upstream origin master

 

Page 1 of 43 1 2 3 4 5 6 7 8 9 10 20 40 > >>