Files
smt/config/index.js
T
nepiedg c883ae7b17 init
2026-01-25 11:45:16 +08:00

14 lines
291 B
JavaScript

const ENV = {
development: {
BASE_URL: 'http://127.0.0.1:8080/api/v1',
MINI_PROGRAM_ID: 1
},
production: {
BASE_URL: 'https://api.example.com/api/v1',
MINI_PROGRAM_ID: 1
}
}
const env = process.env.NODE_ENV || 'development'
export const { BASE_URL, MINI_PROGRAM_ID } = ENV[env]