Category : next.js

I have my self-signed certificate but my Next.js (A react framework) throws this error since I started implementing it: FetchError: request to https://nginx:443/api/items failed, reason: unable to verify the first certificate This is how I try to fetch the list: const res = await fetch(‘https://nginx:443/api/items’, { method: ‘GET’, }) or const res = await fetch(‘https://backend.mysite.local:443/api/items’, ..

Read more

I can’t figure out where the issue stems from. I have a registration page for a new user at localhost:3000/register. It calls the backend Laravel Sanctum API at localhost:8080/api/register. Everything is set correctly in the Laravel configuration. The user even registers to the database, yet I still get this error: Access to XMLHttpRequest at ‘http://localhost:8080/api/register’ ..

Read more

I have a problem after creating a docker image. If I build applications without Docker (npm run build, npm start), everything works correctly. Screenshots below. Please suggest how to fix the problem Dockerfile: FROM node:alpine RUN apk add –no-cache libc6-compat RUN mkdir /brahhouse WORKDIR /brahhouse COPY ./package*.json /brahhouse RUN npm install COPY . /brahhouse RUN ..

Read more

Sample: https://play.tailwindcss.com/Xialm0nYXU (this works as expected in tailwind playground & when app is run directly on laptop but not within my containerized app. The margins mx are not working only inside containers.) I have a HTML code that is similar to the above (but within a larger application). The margins between the <p> elements work ..

Read more