https://github.com/netlify/netlify-vite-environment
https://github.com/netlify/netlify-vite-environment
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netlify/netlify-vite-environment
- Owner: netlify
- Created: 2024-06-10T23:11:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-11T13:48:56.000Z (over 1 year ago)
- Last Synced: 2025-02-25T13:15:46.472Z (10 months ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Netlify Vite Environment
Experimental Vite Environment that allows any Vite-based framework to use Netlify Edge Functions (running in Deno) seamlessly.
It's built on the Environment API from [vite@6.0.0-alpha.11](https://www.npmjs.com/package/vite/v/6.0.0-alpha.11), and based on [Dario Piotrowicz's experimentations](https://github.com/dario-piotrowicz/vite-environment-6.0.0-alpha-experimentations).
It works by setting up a Deno environment with the Netlify runtime layer (the runner), and establishing a communication channel with the main environment in the Vite process (the host).
## Usage
1. Install dependencies
```sh
pnpm install
```
2. Run example site
```sh
cd examples/dummy-framework
pnpm run dev
```
3. Navigate to the URL shown in the console