mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
fix(apps.web): fixed undefined environment variables data
Signed-off-by: hansputera <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
@@ -8,9 +8,11 @@ const { parsed: cusEnv } = require('dotenv').config({
|
||||
module.exports = withTM({
|
||||
reactStrictMode: true,
|
||||
webpack(config) {
|
||||
config.plugins.push(
|
||||
new webpack.EnvironmentPlugin(cusEnv)
|
||||
);
|
||||
if (typeof cusEnv !== 'undefined') {
|
||||
config.plugins.push(
|
||||
new webpack.EnvironmentPlugin(cusEnv)
|
||||
);
|
||||
}
|
||||
return config;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user