Questions tagged [netlify]

Ask questions about the Netlify setup, config or just in general using the netlify-cli or online at app.netlify.com

enter image description here

Netlify is a unified platform that automates your code to create high-performant, easily maintainable static web sites.
Simply push your code and let us take care of the rest.

2231 questions
0
votes
0 answers

Restrict access to GET requests for a file

I'm making a website and I wanted to make it so that if you were visiting the main page (index.html), you can view the images when they're loaded, but when you go to the file, it is not viewable. I'm using netlify because It's relatively easy. I was…
npxr c
  • 48
  • 5
0
votes
1 answer

Uncaught (in promise) FirebaseError: Firebase: Error (auth/api-key-not-valid.-please-pass-a-valid-api-key.) (Netlify)

The problem is about netlify deployment. I am pretty sure all api key value in firebase - config works perfectly, and it works so far so good in local development environment. The problem shows up after deployment to netlify. What may go wrong and…
0
votes
0 answers

Netlify Github Subdirectory

I have a repository on GitHub with few subfolders (all in react) I am trying to deploy one of the folders to Netlify. So if the folder name is "tabs", I set the Base directory to /tabs/ in the UI Build settings. It does not seem to work. any help…
Refael
  • 145
  • 2
  • 12
0
votes
1 answer

How to deploy a particular folder from a github repo to netlify instead of the whole repository?

I want to deploy a application which is existing in a folder in a repository to netlify (using import from github feature.). Again I don't want to deploy the whole repository, I just want that particular folder. there are also other folders in the…
Sathiya D
  • 13
  • 3
0
votes
1 answer

How to recover a deleted git repo

Unfortunately, I accidentally deleted a git repo that I needed without knowing it and it's been more than 3 months so I couldn't recover it in Github. The website is published on Netlify at the moment. So I'm hoping to see if there's a way to…
Tanpo
  • 233
  • 3
  • 18
0
votes
1 answer

i am trying to deploy my project in Netlify but Failed to build site. i don't know whats wrong help me out guys

6:26:26 PM: Build ready to start 6:26:28 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal) 6:26:28 PM: build-image tag: v4.10.1 6:26:28 PM: buildbot version: 67e75f1ba713a8213d4b5a8ccf9708af751e2390 6:26:28 PM: Fetching…
0
votes
1 answer

Netlify Page Not Found after update to code

I'm getting a page not found error on my netlify react site after updating my code. It was working before the update and I'm not sure why it doesn't work now. All I updated was some CSS. No new files, dependencies, etc. I did the usual git add, git…
Victor
  • 329
  • 4
  • 17
0
votes
1 answer

Nextjs dynamic routes return 404 in production but not in localhost

i'm trying to learn how dynamic routes work with NextJS and the thing is that in localhost (npm run dev) works fine, but as soon as I push it to production in Netlify I get 404 error. Static pages are working, it just happends with dynamic routes.…
Mmods GTA V
  • 3
  • 1
  • 4
0
votes
1 answer

Cennot deploy React app to Netlify due error

I want build my react app via Netlify after 2 minutes of building i get this error: Deploy failed for . And then We couldn’t deploy your site. Check out our Build docs for tips on troubleshooting your build, or ask us for debugging advice. I must…
0
votes
1 answer

Connect main/root domain to hashnode blog, not subdomain

I bought and registered a domain via Netlify.com. I have an account at Hashnode that I succefully connected to my Netlify domain. The problem is that it is connected to a subdomain, not my root domain. Domain: www.davekjellmarong.com SubDomain:…
Dave
  • 5
  • 1
  • 7
0
votes
1 answer

MERN - Heroku and Netlify deploy. -Authentication part isnt working

I deployed my MERN projects backend in heroku and frontend in netlify. The netlify part displays data from heroku. But authentication like login/signup is not working. Error in console is Failed to load resource: the server responded with a status…
Maha
  • 3
  • 1
0
votes
2 answers

Netlify and Heroku won't deploy my Nextjs project

I'm trying to deploy my app on heroku or netlify but on both of this I get this incorrect import path ERROR. I'm confused why is this happening the import is correct and works in local. Log ./pages/_app.tsx:7:27 6:31:19 PM: Type error: Cannot find…
xibymepy
  • 33
  • 3
0
votes
3 answers

React-router app on Netlify returning blank index/home page

Having trouble deploying a react-router application to Netlify. Route path '/' returns empty but if I manually type the other paths, they work fine. Would appreciate any help here. This is what my app.js looks like: import './App.scss'; import {…
0
votes
1 answer

Trouble loading modules in a JavaScript web worker

I've got a web worker primes.js that I want to break up into smaller files. Not having any luck. First thing I did was to load the Worker as type:module: worker.current = new Worker('primes.js', {type: module}) Executing this worker works…
Jeff Lowery
  • 2,492
  • 2
  • 32
  • 40
0
votes
0 answers

Failed to compile. ./src/scss/style.scss ParserError: Syntax Error at line: 1, column 39

I'm trying to run a build to react app so I can deploy it to Netlify, however each time I'm getting this error and I don't know where it comes from or how can I solve it, I think the issue comes from the library it self because I comment the…