fix(config): Correct environment determination logic and enable URL check
- Updated the environment determination logic in config.js to accurately return "development" or "production" based on the current environment. - Enabled URL check in project.private.config.json to enhance security and validation of URLs.
This commit is contained in:
parent
1a530ebf02
commit
a87b9758a3
@ -29,7 +29,7 @@ const getEnv = () => {
|
||||
typeof __wxConfig !== "undefined" && __wxConfig && __wxConfig.envVersion
|
||||
? __wxConfig.envVersion
|
||||
: "develop";
|
||||
return envVersion !== "develop" ? "production" : "development";
|
||||
return envVersion == "develop" ? "development" : "production";
|
||||
} catch (e) {
|
||||
return "development";
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"projectname": "yingsa",
|
||||
"condition": {},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"urlCheck": true,
|
||||
"coverView": true,
|
||||
"lazyloadPlaceholderEnable": false,
|
||||
"skylineRenderEnable": false,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user