Skip to content

Adds Firebase Functions server-side rendering to a newly created Preact project created with the command `preact create preactjs-templates/default preact-cli-firebase-ssr`.

Notifications You must be signed in to change notification settings

johnhaitas/preact-cli-firebase-ssr

Repository files navigation

preact-cli-firebase-ssr

CLI Commands

# install dependencies
npm install

# build for production with minification
npm run build

# test the production build locally
npm run serve

# deploy production build to Firebase
npm run deploy

# run tests with jest and preact-render-spy
npm run test

NOTE: When running npm run serve, the build/index.html file is removed before serving locally. This is because firebase serve --only hosting,functions command does not appear to respect hosting.ignore array in firebase.json

For detailed explanation on how things work, checkout the CLI Readme.

About

Adds Firebase Functions server-side rendering to a newly created Preact project created with the command `preact create preactjs-templates/default preact-cli-firebase-ssr`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published