Skip to content

coxmi/ssr-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: this is a work in progress

ssr-tools

Some tools to use in SSR-rendered apps, designed primarily around preact islands, vite, and a next-style file router.

Using vite:

import preact from '@preact/preset-vite'
import { islands, fileRouter, client } from 'ssr-tools'

defineConfig({
    plugins: [
        preact(),
        islands(),
        fileRouter(),
        client(),
    ],
    build: {
        ssr: true 
    }
})

Acknowledgements

Adapted from vite-plugin-voie, and barelyhuman's preact-island-plugins.

About

A collection of tools to use in SSR rendering

Resources

License

Stars

Watchers

Forks

Packages

No packages published