@lukoweb/apitogo 0.1.64 → 0.1.65
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/dist/cli/cli.js
CHANGED
|
@@ -206,7 +206,7 @@ function normalizeEnvPathSegment(segment) {
|
|
|
206
206
|
return COLLAPSED_UPPERCASE_ALIASES[segment] ?? segment.toLowerCase();
|
|
207
207
|
}
|
|
208
208
|
function resolveExistingKey(target, key) {
|
|
209
|
-
if (Object.
|
|
209
|
+
if (Object.hasOwn(target, key)) {
|
|
210
210
|
return key;
|
|
211
211
|
}
|
|
212
212
|
const lower = key.toLowerCase();
|
|
@@ -5335,7 +5335,7 @@ import {
|
|
|
5335
5335
|
// package.json
|
|
5336
5336
|
var package_default = {
|
|
5337
5337
|
name: "@lukoweb/apitogo",
|
|
5338
|
-
version: "0.1.
|
|
5338
|
+
version: "0.1.65",
|
|
5339
5339
|
type: "module",
|
|
5340
5340
|
sideEffects: [
|
|
5341
5341
|
"**/*.css",
|
|
@@ -70,7 +70,7 @@ without restarting the dev server.
|
|
|
70
70
|
| -------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
71
71
|
| Site, plans, modules, branding, backend/gateway metadata | `apitogo.config.json` (+ `.env` overrides — see [Manifest](./manifest.md)) |
|
|
72
72
|
| Plugins and custom code | `apitogo.config.tsx` |
|
|
73
|
-
| OIDC and Stripe for publish | `.env
|
|
73
|
+
| OIDC and Stripe for publish | `.env` via `APITOGO_CONFIG_AUTHENTICATION__*` |
|
|
74
74
|
|
|
75
75
|
**Production:** Register one OIDC app with redirect URI `https://{backend}/signin-oidc` (see MCP
|
|
76
76
|
`manualSteps.oidcRedirectUri`). The frontend uses cookie sessions via `credentials: "include"` on
|
|
@@ -9,7 +9,7 @@ metadata. Code-only pieces (plugins, custom components) stay in `apitogo.config.
|
|
|
9
9
|
| --------------------- | ----------------------------------------------------------- |
|
|
10
10
|
| `apitogo.config.json` | Committed defaults: site, modules, authentication, backend |
|
|
11
11
|
| `apitogo.config.tsx` | Plugins and other non-JSON configuration |
|
|
12
|
-
| `.env`
|
|
12
|
+
| `.env` | Public client vars + publish secrets via `APITOGO_CONFIG_*` |
|
|
13
13
|
|
|
14
14
|
## Canonical shape
|
|
15
15
|
|
|
@@ -79,7 +79,7 @@ APITOGO_CONFIG_PROJECT_ID=your-local-project-id
|
|
|
79
79
|
APITOGO_CONFIG_AUTHENTICATION__API_BASE_URL=https://your-dev-portal-api.example.com
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
Publish secrets (`.env
|
|
82
|
+
Publish secrets (uncomment in `.env`, never commit):
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
85
|
APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
|
|
@@ -26,7 +26,7 @@ environment-specific variables. See the
|
|
|
26
26
|
[Vite documentation](https://vite.dev/guide/env-and-mode.html#env-files) for more information on
|
|
27
27
|
supported files.
|
|
28
28
|
|
|
29
|
-
Here is an example of a `.env
|
|
29
|
+
Here is an example of a `.env` file:
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
32
|
APITOGO_PUBLIC_PAGE_TITLE=My Page Title
|
package/package.json
CHANGED
|
@@ -136,8 +136,7 @@ export function normalizeEnvPathSegment(segment: string): string {
|
|
|
136
136
|
return segment;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const isAllUpper =
|
|
140
|
-
segment === segment.toUpperCase() && /[A-Z]/.test(segment);
|
|
139
|
+
const isAllUpper = segment === segment.toUpperCase() && /[A-Z]/.test(segment);
|
|
141
140
|
if (!isAllUpper) {
|
|
142
141
|
return segment;
|
|
143
142
|
}
|
|
@@ -153,7 +152,7 @@ function resolveExistingKey(
|
|
|
153
152
|
target: Record<string, unknown>,
|
|
154
153
|
key: string,
|
|
155
154
|
): string {
|
|
156
|
-
if (Object.
|
|
155
|
+
if (Object.hasOwn(target, key)) {
|
|
157
156
|
return key;
|
|
158
157
|
}
|
|
159
158
|
const lower = key.toLowerCase();
|