Skip to content

Instantly share code, notes, and snippets.

/*
Runtime Config
Create React App provides a mechanism for _build-time_ configuration,
via REACT_APP_ env vars.
In order to make a single build of the frontend portable across environments,
it's desirable to also be able to provide _run-time_ configuration.
@jrr
jrr / stopwatch.sh
Last active November 12, 2023 21:19
stopwatch.sh
#!/bin/sh
#
# Stopwatch
#
# Simple script to time how long things take. (useful for CI)
#
# Use it like this:
# > ./scripts/stopwatch.sh
# Started stopwatch..
@jrr
jrr / render-deployment.md
Last active March 2, 2023 20:11
Render deployment with multiple environments

This is an excerpt from my project's README.


Deployment

The app is deployed to Render.

Cloud resources are provisioned using a feature called Blueprints. Resources are

@jrr
jrr / ci-cleanup-review-app.yml
Last active May 8, 2025 03:24
An example GitHub CI pipeline for deploying a fly/neon review app
# based on https://github.com/neondatabase/preview-branches-with-fly
name: Clean up Review App
on:
pull_request:
types: [closed]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} # You can generate a Fly API token in your account settings