45 questions
0
votes
0
answers
29
views
Unable to Log In to Netlify — Redirected to MCP Example or 404 Error
Issue Summary
I'm trying to log in to Netlify, but I'm unable to access the actual login dashboard. Instead of being taken to https://app.netlify.com, I’m getting one of the following responses:
...
25
votes
6
answers
9k
views
Why does Yarn fail with "no candidates found" errors?
For example, I'm trying to upgrade netlify-cli from 17.7.0 to 17.8.1 using yarn upgrade-interactive and the following error happens:
➤ YN0000: · Yarn 4.0.2
➤ YN0000: ┌ Resolution step
➤ YN0082: │ @...
3
votes
0
answers
644
views
Installing prisma with vite-netlify project
In my project, I am trying to install prisma inorder to make a serverless function for registering with a mysql database (which located locally on my pc). So I follow these steps:
npm install prisma --...
1
vote
1
answer
48
views
Netlify's Environmental Variable Value Retrieval on C# Using Blazor WebAssembly
Does anyone know how to retrieve the environmental variable value from Netlify's: https://cli.netlify.com/commands/env/. I have a web app that simply just tries to retrieve an API KEY. You can save an ...
0
votes
1
answer
128
views
Request from ::1: POST /.netlify/functions Response with status 404
so I am new to netlify.
I keep getting a 404 error every time I make a request. This is react, and for the JS code:
await fetch('./.netlify/functions/create-payment-intent.js', {
...
1
vote
0
answers
331
views
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 ...
0
votes
1
answer
162
views
RedirectToCheckout() not working when processing Stripe payments with Netlify functions (ReactJs)
I have a function called stripe.js as follows
const stripe = require("stripe")(process.env.STRIPE_SECRET_TEST);
exports.handler = async (event, context) => {
const session = await ...
0
votes
1
answer
445
views
Connect Only Domains Domain name to Netlify
I have registered a domain name in Only Domains website, it is provisioned,
Yet I am unable to link it to my Netlify project.
Steps I followed till now:
Went to Only Domains -> Domain Name -> ...
1
vote
0
answers
137
views
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 ...
0
votes
1
answer
253
views
Netlify. How to build locally and deploy bundle to prod
Is it possible to build locally and deploy a bundle to Netlify?
1
vote
2
answers
361
views
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);
...
2
votes
2
answers
6k
views
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.
...
3
votes
2
answers
739
views
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 ...
1
vote
1
answer
539
views
Netlify deployment Cannot query field "allContentfulGallery" on type "Query"
I am creating an application on React.js, Gatsby.js, and Contentful. My Application is working fine on my local but when I deploy my app to Natilify Cannot query field "allContentfulGallery"...
0
votes
4
answers
1k
views
React Js App is not working at localhost:3000 but it' works fine on localhost:8888(Netlify Dev)
I am Building a tiktok-clone using react js ..with the help of netlify cli (Netlify Dev)..it works very fine in localhost:8888, but it doesn't work in localhost:3000.My database for this project is ...
2
votes
1
answer
918
views
Netlify & Firebase
I am using Netlify Serverless Functions. I want to retrieve and save data to the firebase firestore. I use firebase-admin SDK.
The following is the initialization:
var admin = require("firebase-...
0
votes
1
answer
376
views
Netlify deploy issue on build
site link - https://react-chat-page.netlify.app/
github - https://github.com/mrshawnhum/chat-app
I have recently added a redirect file to fix a bug when you refresh the site and I added automatic ...
2
votes
1
answer
247
views
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 ...
3
votes
1
answer
655
views
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: └─────...
1
vote
1
answer
1k
views
netlify redirect is not working with my create-react-app
I have built a real estate site using Create-react-app. One of the apis is giving me Cors errors in production. Following the documentation from netlify I set up a netlify.toml file in the root of my ...
1
vote
1
answer
1k
views
Netlify npm run build fails for Nuxt deploy
I followed this documentation https://nuxtjs.org/faq/netlify-deployment/ for SPA applications. This is my configuration:
Deploy settings
When I do npm run build to my Nuxt project locally everything ...
0
votes
1
answer
285
views
Netlify Lambda build gives a syntax error
I'm trying to run the command npm run build:lambda, but it keeps giving a syntax error:
****:git user$ npm run build:lambda
> [email protected] build:lambda /Users/****/git
> netlify-...
0
votes
1
answer
202
views
netlify-cli settings ID in Netlify TOML
I noticed that netlify-cli automatically creates a settings ID.
Regarding the ID, the docs say the following:
[Settings]
# Added automatically by the Netlify CLI. It has no effect during normal
# ...