I recently tried to use deploy a simple site with netlify the project name is cardexx at cardexx.netlify.app. The app is just a single html, js, and css files with two netlify functions stored in seperate js files.
**
I have consistently been getting a page saying page not found error 404 etc**…
First this is my repo structure on github:
Random stuff
- Stuff
- Not important
- App
Final (The App I am trying to deploy)
index.html
script.js
appTheme.css
netlify
Functions
function1.js
function2.js
OlderVersions
blah blah blah
- _netlify.toml
This is the basic structure there are other folders and files that aren’t important to the site itself.
I set the configuration settings as Publish Directoy: App/Final (I also tried “App/Final/” as well as just “/” and moving my app files to the repo root) and the Functions Directory: App/Final/netlify/Functions (again I also tried “App/Final/netlify/Functions/”). I have rebuild and played with the configurations a lot and still had no luck at all. Additionally you can see the repo for yourself at GitHub - LMilazzo/cardexx . Other things to note are that I have a single enviroment variable that is an endpoint to an api I call. I call one of my functions which read the env variable and make the call (I didn’t want to expose this endpoint). Additionally I have also tried opening the site link in incognito windows, clearing browser data, and the rebuild without cache options. I have looked at the documentation and saw other people resolving this issue but none of their solutions seemed to work for me.
I think that’s all the information. I am at a loss really on what the issue is, as this is my first time using netlify. I have used 270/300 of my monthly tokens trying to resolve the issue and just don’t want to run out before I get to see it work.
Thanks for the reply, I am actually still having the same issue. Maybe it is my browser since you seem to be able to open it?
I did look into the functions issue though, so the location in which the function files goes if netlify/functions but the path in my javascript should be .netlify/functions. I just made that change.
The page still wont load though. I am going to try and play around with my browser settings.
Thank you for the advice, I was being niave when i first started and didnt realize there was a token system until I was almost out. Probably should have looked into that more first.
Unfortunately it’s made them a lot more expensive for all kinds of use-cases.
Your kind of ‘learning use-case’ (where you’re performing a lot of small builds/deploys as you iterate) is one of those. Once upon a time those builds were free.
If you’re trying to learn, and not invested in using Netlify, you could try Cloudflare Pages / Workers, they have normal usage metrics and high inclusions for their free plans.
To be honest I have no clue what was happening because I just deleted the project and made a new on with all the same stuff and it works now. Thank you for your help I will definitely check out cloudflare as well!!
To put the builds/deployments in perspective though.
Prior to this change, production deploys weren’t directly metered, and the free plan had a ‘build minutes’ limit of “300 minutes/month”, so mileage would vary based on how efficient your build was.
With the new credit based pricing, build efficiency doesn’t matter, but ‘300 credits’ only allows for ‘20 production deploys’ per month (and no other resources).