👀📎 It looks like you're preparing to MC a conference...
🚨 GIANT DISCLAIMER: This stuff is far from authoritative. But it's what I think works for me, and what I enjoy in an MC when I'm attending a conference.
#!/bin/zsh | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Short URL | |
# @raycast.mode silent | |
# Optional parameters: | |
# @raycast.icon 🔗 | |
# @raycast.argument1 { "type": "text", "placeholder": "URL" } |
// npm install @netlify/functions | |
// to get access to scheduling function invocations | |
// using cron notiation or some handy aliases | |
const { schedule } = require("@netlify/functions"); | |
const handler = async function(event, context) { | |
// Trigger a site rebuild and deploy | |
fetch("https://api.netlify.com/build_hooks/HOOK-ID-FROM-ADMIN", { |
# Redirect with a 301 | |
/home / 301 | |
# Redirect with a 302 | |
/my-redirect / 302 | |
# Rewrite a path | |
/pass-through /index.html 200 |
Here's a list of links to resources to accompany the "Introduction to JAMstack" video on freeCodeCamp, by Phil Hawksworth
require('dotenv').config(); | |
const { builder } = require("@netlify/functions"); | |
// Use the same page template our SSG uses dureing the build | |
const pageTemplate = require('../../src/site/_includes/layouts/idea.11ty.js'); | |
const { | |
DATABASE_URL, | |
SUPABASE_SERVICE_API_KEY |
I bought the Sony a5100 which is an older modle but very popular for this purpose. Seems less available on amazon.com at the moment than the updated model which is very similar and probably better:
{ | |
"prod-cat-outfit-pirate" : { "stock": 0 }, | |
"prod-cat-outfit-bunny" : { "stock": 500 }, | |
"prod-cat-outfit-lion" : { "stock": 7 }, | |
"prod-cat-book" : { "stock": 1000 } | |
} |
Thanks for all of your questions during my talk at Frontend United: JAMstack: Silly name. Serious business.
# Our global, build settings | |
[build] | |
base = "site" # run the buold from this directory | |
publish = "public" # the output diretory to push to the CDN after the build | |
command = "gulp build" # the command to build our site | |
# Specific branch context: Deploys from this branch | |
# will take these settings and override their | |
# current ones. |