miolo 3.0.0-beta.187 → 3.0.0-beta.189
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/package.json
CHANGED
|
@@ -141,7 +141,8 @@ const init_passport_auth_middleware = (app, options, sessionConfig, cacheConfig)
|
|
|
141
141
|
clientID: google_client_id,
|
|
142
142
|
clientSecret: google_client_secret,
|
|
143
143
|
callbackURL: google_url_callback_f,
|
|
144
|
-
passReqToCallback: true
|
|
144
|
+
passReqToCallback: true,
|
|
145
|
+
proxy: process.env.NODE_ENV === "production"
|
|
145
146
|
},
|
|
146
147
|
(_req, accessToken, refreshToken, profile, done) => {
|
|
147
148
|
ctx.sessionId = ctx.session?.externalKey
|
|
@@ -56,10 +56,15 @@ const init_headers_middleware = (app, http) => {
|
|
|
56
56
|
})
|
|
57
57
|
|
|
58
58
|
_if_options(http, "proxy", (options) => {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
if (options === true) {
|
|
60
|
+
app.proxy = true
|
|
61
|
+
logger.debug(`[http] Setting Proxy to true`)
|
|
62
|
+
} else {
|
|
63
|
+
const [tpath, toptions] = _proxy_options(options)
|
|
64
|
+
logger.debug(`[http] Setting Proxy for ${tpath} to ${toptions.target} `)
|
|
61
65
|
|
|
62
|
-
|
|
66
|
+
app.use(koa_proxy(tpath, toptions))
|
|
67
|
+
}
|
|
63
68
|
})
|
|
64
69
|
}
|
|
65
70
|
|
package/template/package.json
CHANGED
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"intre": "^3.0.0-beta.4",
|
|
46
46
|
"joi": "^18.1.2",
|
|
47
47
|
"lucide-react": "^1.14.0",
|
|
48
|
-
"miolo-cli": "^3.0.0-beta.
|
|
48
|
+
"miolo-cli": "^3.0.0-beta.189",
|
|
49
49
|
"miolo-model": "file:../miolo-model",
|
|
50
|
-
"miolo-react": "^3.0.0-beta.
|
|
50
|
+
"miolo-react": "^3.0.0-beta.189",
|
|
51
51
|
"next-themes": "^0.4.6",
|
|
52
52
|
"radix-ui": "^1.4.3",
|
|
53
53
|
"react": "^19.2.5",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@biomejs/biome": "2.4.14",
|
|
65
|
-
"miolo": "^3.0.0-beta.
|
|
65
|
+
"miolo": "^3.0.0-beta.189",
|
|
66
66
|
"sass-embedded": "^1.99.0"
|
|
67
67
|
},
|
|
68
68
|
"overrides": {
|