Skip to content

Instantly share code, notes, and snippets.

View hugotox's full-sized avatar
🎸
It's a long way to the top

Hugo Pineda hugotox

🎸
It's a long way to the top
  • Zumper
  • San Francisco, CA
View GitHub Profile
@remy
remy / next.config.js
Created July 18, 2017 18:37
Next.js configuration for dotenv and custom servers.
const webpack = require('webpack');
require('dotenv').config({
path: process.env.NODE_ENV === 'production' ? '.env.production' : '.env'
});
module.exports = {
webpack: config => {
const env = Object.keys(process.env).reduce((acc, curr) => {
acc[`process.env.${curr}`] = JSON.stringify(process.env[curr]);
@staltz
staltz / introrx.md
Last active April 19, 2024 18:49
The introduction to Reactive Programming you've been missing