@gigadrive/network-config 5.2.0 → 5.3.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/dist/index.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -955,6 +955,9 @@ var astro = {
|
|
|
955
955
|
})
|
|
956
956
|
};
|
|
957
957
|
|
|
958
|
+
// src/detection/generated-secret.ts
|
|
959
|
+
var generatedSecret = (format) => `{{gigadrive.secret:${format}}}`;
|
|
960
|
+
|
|
958
961
|
// src/detection/frameworks/php-front-controller.ts
|
|
959
962
|
var phpFrontControllerDefaults = ({
|
|
960
963
|
documentRoot,
|
|
@@ -997,7 +1000,15 @@ var cakephp = {
|
|
|
997
1000
|
"tmp/tests",
|
|
998
1001
|
"logs"
|
|
999
1002
|
],
|
|
1000
|
-
excludeFiles: ["tests/", "tmp/", "logs/"]
|
|
1003
|
+
excludeFiles: ["tests/", "tmp/", "logs/"],
|
|
1004
|
+
environmentVariables: {
|
|
1005
|
+
// The app_local.php that `composer install` copies from the example
|
|
1006
|
+
// reads env('DEBUG', true), which would run every deployment in debug
|
|
1007
|
+
// mode with stack traces in error pages.
|
|
1008
|
+
DEBUG: "false",
|
|
1009
|
+
// config/app.php reads the salt from env; app_local.php is not committed.
|
|
1010
|
+
SECURITY_SALT: generatedSecret("hex")
|
|
1011
|
+
}
|
|
1001
1012
|
})
|
|
1002
1013
|
};
|
|
1003
1014
|
|
|
@@ -1220,6 +1231,8 @@ var laravel = {
|
|
|
1220
1231
|
]
|
|
1221
1232
|
},
|
|
1222
1233
|
environmentVariables: {
|
|
1234
|
+
// Encrypts cookies and sessions; Laravel cannot serve a page without it.
|
|
1235
|
+
APP_KEY: generatedSecret("laravel-app-key"),
|
|
1223
1236
|
APP_NAME: "Laravel",
|
|
1224
1237
|
APP_ENV: "production",
|
|
1225
1238
|
APP_DEBUG: "false",
|
|
@@ -1227,7 +1240,10 @@ var laravel = {
|
|
|
1227
1240
|
LOG_DEPRECATIONS_CHANNEL: "stderr",
|
|
1228
1241
|
LOG_LEVEL: "debug",
|
|
1229
1242
|
BROADCAST_DRIVER: "log",
|
|
1230
|
-
SESSION_DRIVER: "cookie"
|
|
1243
|
+
SESSION_DRIVER: "cookie",
|
|
1244
|
+
// The skeleton defaults both to `database`, which needs a migrated database.
|
|
1245
|
+
CACHE_STORE: "file",
|
|
1246
|
+
QUEUE_CONNECTION: "sync"
|
|
1231
1247
|
}
|
|
1232
1248
|
})
|
|
1233
1249
|
};
|
|
@@ -1969,6 +1985,8 @@ var symfony = {
|
|
|
1969
1985
|
environmentVariables: {
|
|
1970
1986
|
APP_ENV: "prod",
|
|
1971
1987
|
APP_DEBUG: "false",
|
|
1988
|
+
// CSRF tokens, signed URLs and remember-me cookies.
|
|
1989
|
+
APP_SECRET: generatedSecret("hex"),
|
|
1972
1990
|
MESSENGER_TRANSPORT_DSN: "doctrine://default?auto_setup=0"
|
|
1973
1991
|
}
|
|
1974
1992
|
})
|
|
@@ -4066,6 +4084,7 @@ export {
|
|
|
4066
4084
|
dockerFunctionContainerName,
|
|
4067
4085
|
filterFunctionsFromAssets,
|
|
4068
4086
|
generateConfig,
|
|
4087
|
+
generatedSecret,
|
|
4069
4088
|
getFunctionSettings,
|
|
4070
4089
|
mergeWithFrameworkDefaults,
|
|
4071
4090
|
normalizeContainers,
|