Edge-side rendering and fullstack Vite framework
MIT License
Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
esbuild
dependency to match [email protected]
. Fixes #31vite-ssr
dependency for minor fixes.Published by frandiox over 3 years ago
return fetch('https://domain.com/resource')
or return new Response('...')
. This enables using the API as a proxy. The main way to return data is still using serializable objects such as return { data: { value: true } }
.<root>/functions/props/routeName.js
), the request will be skipped. Previously, you had to provide route.meta.propsGetter: false
manually to skip requests but this is not needed anymore.request
passed to the backend handlers (API and Props) is now a Fetch Request to make it similar to the development environment. The original Node's request is provided as rawRequest
. --- CFW deployments are not affected.Published by frandiox over 3 years ago
vite-ssr
to support React's styled-components.Published by frandiox over 3 years ago
vitedge [build|dev] --ssr path/entry.ts
).plugins: [vitedge({ ... })]
).Published by frandiox over 3 years ago
status
and statusText
at the top level (before they had to be wrapped in options
).Location
header.throw new BadRequestError('yikes', { inputs: ['email'] })
) and a way to extend them.Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
<ClientOnly>
component.Published by frandiox over 3 years ago
handleEvent
utility for Node environments (Vercel, Netlify).index.html
file.Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
pageProps
is now an object.Published by frandiox over 3 years ago
ClientOnly
component.@vueuse/head
for managing head tags.<Helmet>
component is no longer exported. Use vueuse/head
instead.Published by frandiox over 3 years ago
vitedge dev --ssr
🎉--mode
flag in CLI{ root: '...' }
options.Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
[email protected]
(there was an internal change in plugin aliases).Published by frandiox over 3 years ago
vitedge/plugin.js
instead of vitedge/plugin.cjs
.VITEDGE_
are loaded in the backend.Published by frandiox over 3 years ago
Published by frandiox over 3 years ago