Skip to content

Instantly share code, notes, and snippets.

View williamchong's full-sized avatar

William Chong williamchong

View GitHub Profile
@williamchong
williamchong / firebase.json
Last active June 30, 2020 20:37
Firebase config for Nuxt SSR app on Firebase Cloud Functions
{
"functions": {
"source": "functions",
"predeploy": [
"npm --prefix src run build && rm -rf functions/nuxt && cp -r src/_nuxt/ functions/nuxt/ && cp src/nuxt.config.js functions/"
]
},
"hosting": {
"predeploy": [
@williamchong
williamchong / ssrapp.js
Last active February 27, 2020 22:45
Nuxt on Firebase cloud functions
const functions = require('firebase-functions');
const { Nuxt } = require('nuxt-start');
const nuxtConfig = require('./nuxt.config.js');
const config = {
...nuxtConfig,
dev: false,
debug: false,
buildDir: 'nuxt',

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1HLE1q5csYXoFwggxcSbkjvbmshZfMMDW4 https://explorer.blockstack.org/address/1HLE1q5csYXoFwggxcSbkjvbmshZfMMDW4