Releases: honojs/vite-plugins
Releases · honojs/vite-plugins
@hono/[email protected]
Minor Changes
-
#218
65e2f768a26d0665aaa05f60abf36bb66a6b6fa9
Thanks @chadxz! - Added a new Netlify Functions build adapter.This adapter can be imported from
@hono/vite-build/netlify-functions
and will
compile your Hono app to comply with the requirements of the Netlify Functions
runtime.- The default export will have the
hono/netlify
adapter applied to it. - A
config
object will be exported, setting the function path to'/*'
and
preferStatic
totrue
.
Please note, this is for the Netlify Functions runtime, not the Netlify Edge
Functions runtime.Example:
// vite.config.ts import { defineConfig } from 'vite' import devServer from '@hono/vite-dev-server' import build from '@hono/vite-build/netlify-functions' export default defineConfig({ plugins: [ devServer({ entry: './src/index.ts', }), build({ entry: './src/index.ts', output: 'functions/server/index.js', }), ], })
If you also have a
public/publish
directory for your assets that should be
published to the corresponding Netlify site, then after running a build, you
would end up with a directory structure like:dist/ functions/ server/ index.js publish/ robots.txt ....
then you can use a netlify.toml that looks like:
# https://ntl.fyi/file-based-build-config [build] command = "vite build" functions = "dist/functions" publish = "dist/publish"
- The default export will have the
@hono/[email protected]
Patch Changes
- #212
01d28ca426646f4b75754767baeb41a11e0d8dfd
Thanks @gobengo! - dev-server plugin getRequestListener fetchCallback now always returns Promise instead of sometimes returning Promise
@hono/[email protected]
Patch Changes
- #209
9a39a51d34e0e6c34212fed15f49aa9248a8b4bc
Thanks @berlysia! - Preserve the SSR server instance during page rendering
@hono/[email protected]
Minor Changes
- #202
3eae0ff4685f53067b32d78d1d9393bddce165eb
Thanks @meck93! - feat: add CSP support to vite'sinjectClientScript
option
@hono/[email protected]
Patch Changes
- #204
adcdd9ad7a3c7ef6a828dfa1210ba5d08eadc576
Thanks @jonz94! - fix(build): removeconsole.log
@hono/[email protected]
Minor Changes
- #198
f08c6586018c0da828158ec252be4d889f8c32e8
Thanks @yusukebe! - feat: Node.js adapter supportsport
option
@hono/[email protected]
Patch Changes
- #196
ead8c3255f2d7fb68084b8d30c3fbe9fcaabb3ec
Thanks @yusukebe! - fix: support latesthono
@hono/[email protected]
Minor Changes
- #191
1a9b6851c01ef17c3129a4432db96f67724ab966
Thanks @yusukebe! - feat: exlude files inpublic
dir
@hono/[email protected]
Minor Changes
- #181
fc15f718c0172f84748f8717f53abba40470baed
Thanks @nakasyou! - Added Deno adapter
@hono/[email protected]
Major Changes
- #177
1ceb95757f1151e9f08cebd992447fb67b470957
Thanks @yusukebe! - Initial release