Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staticjscms/static-cms-preact-netlify-template
Preact blogging template for Static CMS on Netlify
https://github.com/staticjscms/static-cms-preact-netlify-template
cms netlify preact static
Last synced: about 1 month ago
JSON representation
Preact blogging template for Static CMS on Netlify
- Host: GitHub
- URL: https://github.com/staticjscms/static-cms-preact-netlify-template
- Owner: StaticJsCMS
- Created: 2022-10-26T19:14:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T22:23:51.000Z (4 months ago)
- Last Synced: 2024-09-07T02:09:06.620Z (4 months ago)
- Topics: cms, netlify, preact, static
- Language: JavaScript
- Homepage: https://static-cms-preact.netlify.app/
- Size: 5.97 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# blog
## CLI Commands
``` bash
# install dependencies
yarn# serve with hot reload at localhost:8080
yarn dev# build for production with minification
yarn build# run tests with jest and preact-render-spy
yarn test
```For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).
Note: When pre-rendering, your module as components are executed in a Node.js environment, where most Web APIs are not available. To account for this, wrap that code in a check like `if (typeof window !== 'undefined')`.
Do not add `preact build --no-prerender` to the build command as it will prevent blog posts from rendering.