Hi James, at 5.50 make you showing to how to grab the starter project, Are you able to do a video from start to finish so we can learn how to create these starter projects as well?
For those who prefer having the /api url instead of /.netlify/functions, this is my netlify.toml file: [functions] directory = "functions" [build] base = "." publish = "build" command = "npm run build" [[redirects]] from = "/api/*" to = "/.netlify/functions/:splat" status = 200 Seems that the most important thing is the "/" before ".netlify". I've made a lot of combinations and this one works in a couple projects
Just finished this, works beautifully! Just in case someone has the same problem I did right at the end- I ran into the same problem with redirection at the end, and I ended up having to use a _redirects plain text file in the public directory rather than using the toml file. Also weirdly I had to add a build command in the toml file otherwise the functions were not being picked up.
I get an error 'dotenv' module not found at api call ruclips.net/video/VxlbcoJ3nnc/видео.html part of his video. However, I have installed `dotenv` in my root `package.json` file. Only deviation I made in my project is naming files differently for my usecase. Anyone ran into this issue?
Is there any kind of application for which you would prefer using a "standard stack" with a custom server and a database like Mongodb ? I have troubles seeing the limitations of Jamstack
Honestly maybe not lol I’m looking at serverless as a viable option going forward. I could swap out and use something like faunadb or mongo for a more serious db than airtable.
Hi James, a quick question, would appreciate help. How do I make sure, if a course already exists in the table, then not to add it, but just retrieve it's information , but if course does not exist then add it?
➡There was an issue with redirects. In the template download it is ".netlify/functions/:splat". It should be "/.netlify/functions/:splat". This should fix it if you're having any problems.
I'm confused. why are you npm installing when you used yarn in the actuall github file. This tutorial is difficult to follow because the starter file has errors that need to be fixed. I can't even run netlify dev without getting errors that are not even pointed out. Which did you use NPM or yarn?
I still appreciate the work you do but try to make your starter files ( if you'll make any in the future less buggy so the person learning doesn't have to fix bugs instead of learning the actual thing they came to learn
Hi James, at 5.50 make you showing to how to grab the starter project, Are you able to do a video from start to finish so we can learn how to create these starter projects as well?
For those who prefer having the /api url instead of /.netlify/functions, this is my netlify.toml file:
[functions]
directory = "functions"
[build]
base = "."
publish = "build"
command = "npm run build"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
Seems that the most important thing is the "/" before ".netlify". I've made a lot of combinations and this one works in a couple projects
Just finished this, works beautifully! Just in case someone has the same problem I did right at the end- I ran into the same problem with redirection at the end, and I ended up having to use a _redirects plain text file in the public directory rather than using the toml file. Also weirdly I had to add a build command in the toml file otherwise the functions were not being picked up.
I get an error 'dotenv' module not found at api call ruclips.net/video/VxlbcoJ3nnc/видео.html part of his video. However, I have installed `dotenv` in my root `package.json` file. Only deviation I made in my project is naming files differently for my usecase. Anyone ran into this issue?
@@heggyhere1374 Is it installed as a dev dependency? That could be causing problems. What happens if you run 'npm i dotenv @latest'?
Great intro tutorial, James. Thanks for sharing this. btw, any cause for concern at 05:36 ?
Wow!! Great catch. I only blurred it out in place lmao! I've change it since then though s I'm good :)
Why aren’t you using a switch statement in the function instead of all those if statements?
Another great one! thanks dude
Thanks ;)
Is there any kind of application for which you would prefer using a "standard stack" with a custom server and a database like Mongodb ? I have troubles seeing the limitations of Jamstack
Honestly maybe not lol I’m looking at serverless as a viable option going forward. I could swap out and use something like faunadb or mongo for a more serious db than airtable.
thanks for this tutorial. A feedback is that your camera view is blocking the console window.
Thanks for sharing!
what would be the easiest way to add auth* to this?
Hi James, a quick question, would appreciate help. How do I make sure, if a course already exists in the table, then not to add it, but just retrieve it's information , but if course does not exist then add it?
i like your doggo🤩
Haha she’s a good girl!
Sorry, where can I find part 1?
➡There was an issue with redirects. In the template download it is ".netlify/functions/:splat". It should be "/.netlify/functions/:splat". This should fix it if you're having any problems.
awesome
I'm confused. why are you npm installing when you used yarn in the actuall github file. This tutorial is difficult to follow because the starter file has errors that need to be fixed. I can't even run netlify dev without getting errors that are not even pointed out. Which did you use NPM or yarn?
I'm here spending hours fixing a bug i didn't create instead of doing the acutal tutorial
I still appreciate the work you do but try to make your starter files ( if you'll make any in the future less buggy so the person learning doesn't have to fix bugs instead of learning the actual thing they came to learn
Can you share what specific bugs you’re seeing?
@@JamesQQuick cant see show api button on airtable is it moved somewhere else?
Are we doing CSR or SSR or SSG here ?
I guess it's CSR, coz its react, right?
Csr for react yes :)
"Another one !"
Hehe thanks!
WHOOP
🤗🤠
Thanks!
awesome
Thank you!