
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@hono/vite-ssg
Advanced tools
@hono/vite-ssg
is a Vite plugin to generate a static site from your Hono application.
You can install vite
and @hono/vite-ssg
via npm.
npm i -D vite @hono/vite-ssg
Or you can install them with Bun.
bun add vite @hono/vite-ssg
Add "type": "module"
to your package.json
. Then, create vite.config.ts
and edit it.
import { defineConfig } from 'vite'
import ssg from '@hono/vite-ssg'
export default defineConfig({
plugins: [ssg()],
})
Just run vite build
.
npm exec vite build
Or
bunx --bun vite build
Run the wrangler
command.
wrangler pages deploy ./dist
The options are below.
type SSGOptions = {
entry?: string
/**
* Hono SSG plugins to use.
* These are not Vite plugins, but plugins for Hono's static site generation.
* @see https://hono.dev/docs/helpers/ssg#plugins
*/
plugins?: SSGPlugin[]
}
Default values:
const defaultOptions = {
entry: './src/index.tsx',
plugins: [],
}
MIT
FAQs
Vite plugin to generate a static site from your Hono application
The npm package @hono/vite-ssg receives a total of 1,077 weekly downloads. As such, @hono/vite-ssg popularity was classified as popular.
We found that @hono/vite-ssg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.