Weirdest use of Airtable today?

✨ I made a no-code feature flag system with Airtable and am using that to hide or display sections on a Next.js site. ✨

That's one way to help a client who can't decide when exactly something should go live on their site. 🤷🏾‍♂️
Here's how I did it. First I have a table that looks something like this. This is what the client sees when they edit the "Features" table (base, in Airtable lingo).
Airtable gives you an automatic API for each base. In the case of the Features base, I click into the API documentation and see that it looks like this.

This is a test base, I am not worried that you see my base ID in the screenshot.
Then, I use the Incremental static regeneration feature in Next.js: nextjs.org/docs/basic-fea…

Incremental static regeneration allows us to build a static site using the results of an API call (such as a headless CMS, or Airtable 😂) but will regenerate the site on an interval.
On the page where I need this I have a getStaticProps() function at the bottom of the page that uses axios to query the Airtable API at build time.

The features object is passed in as props to the page component, and then revalidated & saved every 300 seconds.

That's it! 🎉
I'm thinking about using Airtable as the cms for @everyoak this year, letting schools edit their own registration instructions and school info instead of sending me walls of text.

Watch me willingly open up my site for XSS attacks...
I’m going to write this up so it’s accessible and more long-lived.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Vic 🌮

Vic 🌮 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @VicVijayakumar

19 Nov
Casually browsing SaaS startups on @microacquire this morning to see if I want to buy one in the 5-10K range that has a low but steady MRR.

These are validated ideas with momentum and can shave several months to years off of your early founder journey.

Anyone else into this?
There's more interest in this than I expected. Here are a few other marketplaces I browse from time to time:

Flippa lists domain names, iOS/Android apps, blogs, ecommerce sites, SaaS, Amazon FBA.
I am also a *huge* fan of exchangemarketplace.com, which is run by Shopify, and no surprise, is a place to buy and sell Shopify businesses only.

You get a TON of verified information about a store's revenue, profit, profit margin, and sales.
Read 5 tweets
17 Nov
Coming to @netflix next Halloween starring Vanessa Hudgens, the newest film in the series-

The Princess Switch: Princess Witch 👸🏽🧙‍♀️
@netflix Vanessa Hudgens has a déjà vu when she sees the same exact cat walk by twice. 🐈‍⬛🐈‍⬛

The Princess Switch: Matrix Glitch
@netflix It's going to be a warm weekend! The kingdom is ready to go out to the ballgame and get popcorn and hotdogs. 🍿⚾️🌭

The Princess Switch: Perfect Pitch
Read 6 tweets
2 Mar
If you are building a SaaS from scratch, have your Users belong to Teams, and attach billing information to the Team not User. While you're there, create a Membership model to be the join table between User/Team and assign a role to the User like Owner, Admin, or Readonly.
This signals that your app is business-friendly. It allows you to assign limits and features at the Team level. It allows for users to ask for their accounts to be deleted without it affecting the billing status of the entire team. It allows a team to kill a teammate's account.
"but I'm building a b2c, do I need teams?"

Personal finance tool: user wants spouse to see their budget

Notetaking tool: user wants to share notes with family

Videogame recc app: user wants girlfriend to add their games to library

Preschool app: grandma wants to pay tuition
Read 6 tweets
24 Mar 20
What a crazy world— my 5yo just requested me to please not be loud or crazy because she has a call at 10 with her class.
oh good, they're all doing the "can you see me? can you hear me?" thing and I'm just glad that this is universal.
At 10:06am they could finally all see and hear each other so they're right there alongside every other team in the world doing video calls.
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(