Questions tagged [netlify-cli]

Command line interface for Netlify, a content management system for static websites.

Command line interface for Netlify, a content management system for static websites. https://www.npmjs.com/package/netlify-cli

48 questions
11
votes
4 answers

Netlify does not recognize the URL params when using react-router-dom

I am creating a react app that uses react router. I am using the router to match the paths like :/bankName-:credit and it works fine in local development. The only require path for my application is :/bankName-:credit and every other path will hit…
aditya81070
  • 678
  • 1
  • 5
  • 22
6
votes
1 answer

Disable Continuous Deployment on netlify

I have a project where I use Travis CI for CI. I also have a website setup at netlify to deploy said project to. The steps involved in my Travis CI are basically to run tests and then call a netlify build hook to trigger a build and deploy on…
reggaemahn
  • 6,272
  • 6
  • 34
  • 59
5
votes
1 answer

Netlify deploy throws: Error: Invalid version: “1”

Since yesterday I'm facing an error that I haven't been able to fix or to find information about. I can build my site locally without errors but when I try to deploy it in Netlify it fails and throws: 8:19:33 AM: ​ 8:19:33 AM:…
Ferran Buireu
  • 28,630
  • 6
  • 39
  • 67
3
votes
2 answers

TypeGraphQl: Usage with Netlify Functions/AWS Lambda

I was finally able to get TypeQL working with Netlify Functions / AWS Lambda after a day of work, going over the docs and examples, and in the end desperate brute force. I'm sharing my working code here for others (or for future reference of my own…
Aerodynamic
  • 782
  • 5
  • 19
3
votes
1 answer

Netlify Deploy Fails

Does anyone know why I'm getting the following error : Verify run directory 10:47:31 PM: ​ 10:47:31 PM: ┌─────────────────────────────┐ 10:47:31 PM: │ Netlify Build │ 10:47:31 PM: └─────────────────────────────┘ 10:47:31 PM: ​ 10:47:31…
2
votes
0 answers

How do I update Netlify identity user's app metadata?

I am using gotrue-js in react to signup and login users to my netlify identity. I am getting an error called "data":{"code":401,"msg":"Invalid token: signature is invalid"}". I am running this locally (on localhost:8888) and using netlify cli to run…
2
votes
2 answers

How to build a next.js project and deploy it MANUALLY to Netlify?

According to the docs, Netlify supports next.js through the Essential Build Plugin and manual deployments through a CLI command, but how can I use the two together to build a next.js project in my own CI and deploy only the build output to…
John Goofy
  • 866
  • 8
  • 22
2
votes
1 answer

Invalid Content-Type for Netlify Dev forms request

I'm working on a Gatsby project with Netlify Functions locally using "netlify dev" on the CLI. Things were working relatively fine, I could go to localhost:8888 and get pages to appear and then I was trying to debug my functions. I got a message…
Ivan
  • 1,093
  • 1
  • 10
  • 15
1
vote
0 answers

Nextjs github actions deployment to netlify

I would like to deploy a Nextjs website (called enchanting-elf-d42f40 on netlify) using the CLI, through GitHub actions but for now, I’m still getting this error when I want to access it: Page Not Found : Looks like you've followed a broken link…
1
vote
0 answers

Netlify env variables: Uncaught ReferenceError: process is not defined

My Remix app was working correctly when my various api values were inline. I then moved them to a .env file and imported the file to Netlify. My file now uses process.env.[ENV_VARIABLE] to access the environment variables. When I run netlify dev, I…
rcrusoe
  • 441
  • 2
  • 4
  • 14
1
vote
0 answers

Netlify Functions logs doesnt show up when there are no uncaught exceptions? How to make sure Netlify function logs are captured consistently

I was deploying an application using Netlify Function. While doing so I was trying to access logs and surprisingly I was able to see logs only when there is an Uncaught Exception. In Other cases, the console.log statements which should be logged as…
Hari
  • 452
  • 1
  • 6
  • 16
1
vote
0 answers

Can't save query in Netlify Graph

I am trying to create custom query for Spotify API using Netlify Graph, but I can't save the query. My query works as expected in graphql playground, the problem rises when I either try to save it or create handler for it. Creating handler echoes…
1
vote
2 answers

Netlify environment variables that were set in the UI are injected as undefined when running a local dev server

I have set some environment variables in the Netlify UI. See here: I am trying to use them in my code like this: console.log("AUTH0_DOMAIN:"); console.log(process.env.AUTH0_DOMAIN); console.log("AUTH0_CLIENT_ID:"); …
TinyTiger
  • 1,801
  • 7
  • 47
  • 92
1
vote
1 answer

I am trying to host my react website on netlify but this npm install error comes

If I run the npm run build command locally and drag and drop the build folder in netlify, then it is hosted but it gives this big error. When I try continuous deployment from my github repository. This is the error showed in the beginning 11:51:47…
Ruchi Ray
  • 157
  • 1
  • 2
  • 10
1
vote
1 answer

GitHub Personal Access Token Private repo scope

I am currently trying out Netlify function and using Netlify-cli to setup the CD. In the authorizing options, I picked the GitHub Personal Access Token and I want to know if the Full control of private repositories scope will include the private…
H.Le
  • 33
  • 4
1
2 3 4