Skip to content

Instantly share code, notes, and snippets.

@omarmilhouse
omarmilhouse / fix_nghttp2_make.sh
Created May 2, 2019 10:01
Fix brew install nghttp2 with macOS 10.11 while installing php
# Error installing nghttp2 during make:
# Last 15 lines from /Users/omarmilini/Library/Logs/Homebrew/nghttp2/02.make:
# _LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
brew install gcc
brew install --cc=gcc-8 nghttp2
@cereallarceny
cereallarceny / index.js
Last active May 2, 2023 06:41
Server-side rendering in Create React App
const md5File = require('md5-file');
const path = require('path');
// CSS styles will be imported on load and that complicates matters... ignore those bad boys!
const ignoreStyles = require('ignore-styles');
const register = ignoreStyles.default;
// We also want to ignore all image requests
// When running locally these will load from a standard import
// When running on the server, we want to load via their hashed version in the build folder