Category "netlify"

How to define Netlify function endpoint as POST?

I am new to serverless and am trying to get my head around it. So I've created a function on netlify using GET and it works fine. Then I wanted a POST endpoint

How do I get the POST data from a netlify serverless function?

Here is the code for my server which works fine. I am trying to achieve this with netlify's serverless functions which I have pasted further below. CODE ON STAN

Next.js APIs working locally, but throws errors when deployed to Vercel/Netlify

The issue I'm having here is that whenever I deploy my app to either Netlify or Vercel the POST requests specifically being sent to the NextJS APIs are all thro

Netlify deploy error: Deploy did not succeed: Deploy directory 'build' does not exist

I know this is a common error, but I tried a lot of solutions and no one did fix this problem. What am I doing wrong? The project is in NextJs, I have already t

" Dependencies installation error" : Is Netlify asking for a previous version of node to deploy the site?

While deploying my app with Netlify I am getting this error Dependencies installation error Is it asking me to install a previous version of node locally and r

Deploy different from view on local server

I was building a site and during building I checked it out through live server and everything was OK. Now after deploying on netlify. The site looks different a

Alignment Problem After Deploying in Netlify / React App

Github Repo Link This is a react app that I trying to deploy on Netlify but after deploying its alignment does not work as it works on the local machines. Netli

How do I resolve the "Module not found: Can't resolve [css file] in [directory]" when deploying next.js site to Netlify?

I am trying to deploy this site to netlify: https://github.com/Koda-Pig/joshkoter.com But I am getting this error: 10:02:31 AM: Module not found: Can't resolve

Cannot deploy Next.js to Netlify. Deploy failed due to an error in @netlify/plugin-nextjs plugin

I can run npm run build with no problems at all, but whenever I try and deploy my Next.js project to Netlify I get an odd error stating Deploy failed due to an

Some media query is not working on netlify, but it's working locally

I am working on a project with ReactJs, and I used media query to resize the width of my column on mobile. It works locally but it does not work on Netlify for

Problem adding new fields (images) to a Netlify CMS collection

I have a collection for the blog posts and now I want to edit it and 2 new fields: one for the featured image and the second one for a thumbnail image. I did it

How to implenent NameCheap DNS with Netlify and Heroku

So I want to host my front-end React app on Netlify and I want it to be at www.mydomainname.com. I also want to host my back-end on Heroku and I want it to be a

Netlify page not found 404 after clicking a button

I'm new to here, just have a question and want to solve it. I have deployed my app on netlify, everything works fine at localhost, but when I tested it on netl

How to edit Hugo content files directly in content root folder

I am new to netlify and netlifyCMS. Did upload a Hugo site which is working well. Now trying to implement CMS. It is a very simple site with only a few *.md con

Can I run a front-end and back-end on Netlify?

I want to practice creating my own RESTful API service to go along with a client-side application that I've created. My plan is to use Node and Express to creat

no index.html file in my nextjs app. Netlify doesn't like that

Netlify wont allow you to deploy a website unless there is an index.html file. Nextjs didn't set me up with one when I did create-next-app. Anyone know how to f

Redirects doesn't work on netlify with nextjs

I simply followed the doc by adding this to my next.config.js module.exports = { reactStrictMode: true, async redirects() { return [ { so

Netlify CMS custom preview problem dangerouslySetInnerHTML={{ __html: widgetFor('body') }} shows [object Object] in /admin preview

i have problem with this component: import CMS from 'netlify-cms-app' import React from 'react' import Article from './preview-templates/Article' const ArticleP

Is it possible to deploy a ReactJS website with json-server on Netlify?

I have an application built with ReactJS, but I'm using a fake API (json-server) to handle my data. So, before I run 'npm start' to run the application I have t

setState provokes Minified React error #130 only on production build

Every time I interact with the drop-down button on the front page of my application, the error https://reactjs.org/docs/error-decoder.html/?invariant=130&ar