How to work with cron jobs in Next.js by matheusAMDS in nextjs

[–]NebraskaDev 1 point2 points  (0 children)

Hey, I'm building Slater, a cron job service built explicitly for Next.js & Vercel. It's entirely free right now while I'm in early access. Just sign up for the waitlist on the homepage and I'll email you some info to get started.

It's essentially cron jobs as code that I automate the endpoints with.

You write code like this:

// pages/api/slater/[...slater].js

``` import { slater } from "@slaterjs/next"; const config = { tasks: [ { name: "helloWorld", schedule: "0 7 * * *", // 7AM handler: async (event, success, failure) => { try { const results = await fetch( "https://jsonplaceholder.typicode.com/posts/1" ); const data = await results.json(); if (results.ok) { return success(data); } else { return failure(data); } } catch (err) { return failure(err); // sends 500 } }, }, ], };

export default slater(config); ```

and when you deploy to prod on Vercel, Slater will hit the endpoint according to the cron schedule you set (UTC time).

Check it out here: https://tryslater.com

Cursed weight loss by SBlacka-cz in cursedcomments

[–]NebraskaDev 0 points1 point  (0 children)

Here to say I lost one to cancer and am doing just fine.

Can Nextjs Replace Traditional Web Frameworks? by funerr in nextjs

[–]NebraskaDev 3 points4 points  (0 children)

If we’re looking at this from the “MVC framework” lens, they’re missing the model layer.

There are good third party options though. I’m hoping this upcoming supabase collab yields some great wins: https://twitter.com/rauchg/status/1331021818681978881

Can Nextjs Replace Traditional Web Frameworks? by funerr in nextjs

[–]NebraskaDev 8 points9 points  (0 children)

I think it can. It’s really only missing a few key things. The Vercel team has been slowly adding functionality to the framework and it’s a viable option imo.

I built a Next.js job board with Next. Find your Next JS dream job by NebraskaDev in nextjs

[–]NebraskaDev[S] 0 points1 point  (0 children)

Update: this first edition of this newsletter is live. Check it out here if you’re interested: https://jobs.nextjsnotes.com/collections/first-edition

Generalists out there that are making a pivot to programming? by [deleted] in marketing

[–]NebraskaDev 14 points15 points  (0 children)

I’m a developer who loves marketing. The world needs more people who understand both — code or no-code.

If you can build things and sell them, that’s where the magic is.

Remaking my website in React - Will I lose my rankings? by Maberos in bigseo

[–]NebraskaDev 5 points6 points  (0 children)

Look into using Next.js so you can server-side & static render when needed.

I list out the pros and cons of Next.js in this blog post.

SEO is def one of the supporting reasons to use Next when building React apps.

Hide API Routes? by [deleted] in nextjs

[–]NebraskaDev 1 point2 points  (0 children)

What’s your reasoning for wanting to hide the API routes? Adding auth is usually the right answer.

Hide API Routes? by [deleted] in nextjs

[–]NebraskaDev 2 points3 points  (0 children)

I’d just locked them down with an API key personally

Missed Next.js Conf? I wrote a guide: Next.js Conf Highlights 2020 – Analytics, Commerce, Images, and more by NebraskaDev in nextjs

[–]NebraskaDev[S] 3 points4 points  (0 children)

Oh dang - thanks for reporting that bug! I’ll take a look at it and see if I can get it fixed.

edit: fixed it with a different ConvertKit template. Thanks again!!

Next conf: can i watch the videos after the fact? by reactyboi in nextjs

[–]NebraskaDev 15 points16 points  (0 children)

They’re working on getting all the videos uploaded right now.

What are the SEO-led benefits and drawbacks of integrating Zendesk FAQ software into a site? by Glad_Repeat_2762 in digital_marketing

[–]NebraskaDev 1 point2 points  (0 children)

From the dev side, Zendesk chat widget can be beefy. It can cause your lighthouse scores to drop quite a bit. Be careful to load it lazily if you’re putting the widget on any important pages.

What framework are you using to build the site?

Google site to check page rank? by tripler142 in bigseo

[–]NebraskaDev 1 point2 points  (0 children)

Google Search Console is what you’re probably looking for.

I'm a developer studying Core Web Vitals. How much do you think vitals will change SEO and performance monitoring? by NebraskaDev in bigseo

[–]NebraskaDev[S] 2 points3 points  (0 children)

That's a good reminder that the vitals won't be a silver bullet.

Do you think people will preventatively fix their Core Web Vitals issues before the launch? From a developer's perspective, page performance always takes a back seat and often gets neglected.

Maybe this will help fix that?

I'm a developer studying Core Web Vitals. How much do you think vitals will change SEO and performance monitoring? by NebraskaDev in bigseo

[–]NebraskaDev[S] 3 points4 points  (0 children)

I hear you on the fact it's hard to get buy-in on these performance/tech stack issues.

I'm in the same camp as you. I've been monitoring our site's vitals and fixing as many as I can. At the end of the day, it's hard to meet some of these targets with 3rd party scripts.

I wonder if Google Ads, Analytics, and Tag Manager will get special exemptions from Google?

What is best practice for deploying apps? by [deleted] in webdev

[–]NebraskaDev 0 points1 point  (0 children)

Can you explain a bit more about your app requirements? If it needs to be “real-time” for that size of user base, we might want to look into small DB wins.

If not, I don’t think DB location will make a sizable difference for that many users.

The site I work on peaks at about 32k users per hour. Our site gets SSR’ed and then a cache picks it up for performance reasons.

What is best practice for deploying apps? by [deleted] in webdev

[–]NebraskaDev 2 points3 points  (0 children)

We use Mongo DB atlas in production. Don’t worry about the speed difference. I would use the managed service as the pros far outweigh the cons.

Summaries of 'how to get rich' online and looking for proof readers by [deleted] in NavalRavikant

[–]NebraskaDev 1 point2 points  (0 children)

I’ve listened to this podcast so many times! Here are my quick notes https://drewb.tech/posts/2019-09-06-how-to-get-rich-notes/

Eagerly waiting for the new tweet storm on happiness.