🔧 use .env instead of json config files

This commit is contained in:
ChatonDeAru
2024-03-24 00:01:09 +01:00
committed by ChatonDeAru (Romain)
parent f88dbc36d2
commit 24db804c7f
16 changed files with 121 additions and 166 deletions

View File

@@ -10,6 +10,7 @@ import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer"
export const isDev = process.env.NODE_ENV === "development"
const isLocal = process.env.LOCAL === "true"
const isRegisterDiscordCommands = process.env.REGISTER_DISCORD_COMMANDS === "true"
const getStyleLoaders = (isWeb: boolean, isSass?: boolean) => {
let loaders: RuleSetUseItem[] = [
{
@@ -51,6 +52,7 @@ const getPlugins = (isWeb: boolean) => {
__DEV__: isDev,
__LOCAL__: isLocal,
__REGISTER_DISCORD_COMMANDS__: isRegisterDiscordCommands,
API_URL: process.env.API_URL || "'http://localhost:3000'",
}),
]