mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 05:46:28 +02:00
🔧 use .env instead of json config files
This commit is contained in:
committed by
ChatonDeAru (Romain)
parent
f88dbc36d2
commit
24db804c7f
@@ -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'",
|
||||
}),
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user