@orochibraru/svelte-smol 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ bun add -d @orochibraru/svelte-smol
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
```
|
|
15
|
+
```typescript
|
|
16
16
|
// svelte.config.js
|
|
17
17
|
import adapter from "@orochibraru/svelte-smol";
|
|
18
18
|
|
|
@@ -75,7 +75,7 @@ instrumentation — works the same.
|
|
|
75
75
|
|
|
76
76
|
## Options
|
|
77
77
|
|
|
78
|
-
```
|
|
78
|
+
```typescript
|
|
79
79
|
adapter({
|
|
80
80
|
out: "build", // output directory
|
|
81
81
|
name: "server", // executable filename within `out`
|
|
@@ -101,23 +101,23 @@ runtime the first time you use a target.
|
|
|
101
101
|
|
|
102
102
|
## Runtime environment variables
|
|
103
103
|
|
|
104
|
-
| Variable
|
|
105
|
-
|
|
|
106
|
-
| `HOST`
|
|
107
|
-
| `PORT`
|
|
108
|
-
| `SOCKET_PATH`
|
|
109
|
-
| `ASSETS_DIR`
|
|
110
|
-
| `ORIGIN`
|
|
111
|
-
| `PROTOCOL_HEADER`
|
|
112
|
-
| `HOST_HEADER`
|
|
113
|
-
| `PORT_HEADER`
|
|
114
|
-
| `ADDRESS_HEADER`
|
|
115
|
-
| `XFF_DEPTH`
|
|
116
|
-
| `BODY_SIZE_LIMIT`
|
|
117
|
-
| `IDLE_TIMEOUT`
|
|
118
|
-
| `SHUTDOWN_TIMEOUT`
|
|
119
|
-
| `HEALTHCHECK_PATH`
|
|
120
|
-
| `HEALTHCHECK_TIMEOUT` | `2000`
|
|
104
|
+
| Variable | Default | Purpose |
|
|
105
|
+
| --------------------- | ---------- | ----------------------------------------------------------------------------------------------- |
|
|
106
|
+
| `HOST` | `0.0.0.0` | Listen address |
|
|
107
|
+
| `PORT` | `3000` | Listen port |
|
|
108
|
+
| `SOCKET_PATH` | — | Listen on a Unix socket instead of `HOST`/`PORT` |
|
|
109
|
+
| `ASSETS_DIR` | — | Override where `client/` and `prerendered/` are looked up (absolute, or relative to the binary) |
|
|
110
|
+
| `ORIGIN` | — | Absolute origin used for request URL resolution |
|
|
111
|
+
| `PROTOCOL_HEADER` | — | Header carrying the forwarded protocol (e.g. `x-forwarded-proto`) |
|
|
112
|
+
| `HOST_HEADER` | — | Header carrying the forwarded host |
|
|
113
|
+
| `PORT_HEADER` | — | Header carrying the forwarded port |
|
|
114
|
+
| `ADDRESS_HEADER` | — | Header carrying the client address (e.g. `x-forwarded-for`) |
|
|
115
|
+
| `XFF_DEPTH` | `1` | Trusted-proxy depth when `ADDRESS_HEADER=x-forwarded-for` |
|
|
116
|
+
| `BODY_SIZE_LIMIT` | `512K` | Max request body size (`K`/`M`/`G` suffixes allowed) |
|
|
117
|
+
| `IDLE_TIMEOUT` | `10` | Bun socket idle timeout in seconds (SSE responses opt out) |
|
|
118
|
+
| `SHUTDOWN_TIMEOUT` | `30` | Seconds to wait for in-flight requests on `SIGINT`/`SIGTERM` |
|
|
119
|
+
| `HEALTHCHECK_PATH` | `/_health` | Endpoint the `healthcheck` binary probes (must match the `healthcheck` option) |
|
|
120
|
+
| `HEALTHCHECK_TIMEOUT` | `2000` | `healthcheck` binary request timeout in ms |
|
|
121
121
|
|
|
122
122
|
Set `envPrefix` to namespace these (`envPrefix: "MY_APP_"` → `MY_APP_PORT`).
|
|
123
123
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ const templates = fileURLToPath(new URL("./templates", import.meta.url));
|
|
|
41
41
|
* @returns the configured SvelteKit {@link Adapter}
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
|
-
* ```
|
|
44
|
+
* ```typescript
|
|
45
45
|
* // svelte.config.js
|
|
46
46
|
* import adapter from "@orochibraru/svelte-smol";
|
|
47
47
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orochibraru/svelte-smol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@biomejs/biome": "^2.5.11",
|
|
49
|
+
"@semantic-release/changelog": "^7.0.0",
|
|
50
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
51
|
+
"@semantic-release/git": "^11.0.1",
|
|
49
52
|
"@semantic-release/github": "^12.0.9",
|
|
50
53
|
"@semantic-release/npm": "^13.1.5",
|
|
51
54
|
"@sveltejs/kit": "^2.70.3",
|