mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
chore: vite always uses production mode, no need for env warn
This commit is contained in:
parent
8acd6e1de4
commit
de4ef3d4cc
@ -14,17 +14,6 @@ const action = async (options: BuildCLIOptions) => {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* ENFORCE NODE_ENV to production when building
|
||||
*/
|
||||
process.env.NODE_ENV = process.env.NODE_ENV ?? 'production';
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
options.logger.warn(
|
||||
'[@strapi/strapi]: The NODE_ENV is not set to production. This may result in unexpected behavior.'
|
||||
);
|
||||
}
|
||||
|
||||
await nodeBuild(options);
|
||||
} catch (err) {
|
||||
handleUnexpectedError(err);
|
||||
|
22
yarn.lock
22
yarn.lock
@ -13397,24 +13397,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"caniuse-lite@npm:^1.0.30001400, caniuse-lite@npm:^1.0.30001517, caniuse-lite@npm:^1.0.30001587":
|
||||
version: 1.0.30001600
|
||||
resolution: "caniuse-lite@npm:1.0.30001600"
|
||||
checksum: 4c52f83ed71bc5f6e443bd17923460f1c77915adc2c2aa79ddaedceccc690b5917054b0c41b79e9138cbbd9abcdc0db9e224e79e3e734e581dfec06505f3a2b4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"caniuse-lite@npm:^1.0.30001541":
|
||||
version: 1.0.30001542
|
||||
resolution: "caniuse-lite@npm:1.0.30001542"
|
||||
checksum: 07b14b8341d7bf0ea386a5fa5b5edbee41d81dfc072d3d11db22dd1d7a929358f522b16fdf3cbd154c8a5cae84662578cf5c9e490e7d7606ee7d156ccf07c9fa
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"caniuse-lite@npm:^1.0.30001565":
|
||||
version: 1.0.30001574
|
||||
resolution: "caniuse-lite@npm:1.0.30001574"
|
||||
checksum: 159ebd04d9bbef11bd08499f058f70bf795a55641929be5efadf0f6b17216d4b923506778e59bbb939246834304b753b2e88ff1e2430f6a5aef0a86971f98bd3
|
||||
"caniuse-lite@npm:^1.0.30001400, caniuse-lite@npm:^1.0.30001517, caniuse-lite@npm:^1.0.30001541, caniuse-lite@npm:^1.0.30001565, caniuse-lite@npm:^1.0.30001587":
|
||||
version: 1.0.30001636
|
||||
resolution: "caniuse-lite@npm:1.0.30001636"
|
||||
checksum: 9e6c5ab4c20df31df36720dda77cf6a781549ac2ad844bc0a416b327a793da21486358a1f85fdd6c39e22d336f70aac3b0e232f5f228cdff0ceb6e3e1c5e98fd
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user