Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hacksore/vite-plugin-caddy
⚡ A vite plugin to enable automagic HTTPS for local development with caddy server
https://github.com/hacksore/vite-plugin-caddy
caddyserver https vite vite-plugin
Last synced: 2 months ago
JSON representation
⚡ A vite plugin to enable automagic HTTPS for local development with caddy server
- Host: GitHub
- URL: https://github.com/hacksore/vite-plugin-caddy
- Owner: Hacksore
- License: mit
- Created: 2024-01-27T16:51:06.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-10T19:31:15.000Z (11 months ago)
- Last Synced: 2024-10-10T16:13:51.262Z (3 months ago)
- Topics: caddyserver, https, vite, vite-plugin
- Language: TypeScript
- Homepage: https://vite-plugin-caddy.vercel.app
- Size: 107 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-caddy
> [!WARNING]
> THIS PLUGIN IS HIGHLY EXPERIMENTAL AND UNSTABLE, USE WITH CAUTION## Usage
```js
// vite.config.js
import { defineConfig } from "vite";
import caddyTls from "vite-plugin-caddy";const config = defineConfig({
plugins: [
caddyTls({
domains: ["this.is.cool.localhost", "something-else.localhost"],
})
]
});export default config;
```Will give this in the terminal, allow you to connect to your app on HTTPS with a self-signed and trusted cert.
```
> vite🔒 Caddy is running to proxy your traffic on https
🔗 Access your local servers
🌍 https://this.is.cool.localhost
🌍 https://something-else.localhost```
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) to see how to get started.
## LicenseMIT