mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
25 lines
438 B
Go
25 lines
438 B
Go
const proxyConfigMappings: Record<ProxyType, ProxyConfig> = {
|
|
dev: [
|
|
{
|
|
prefix: '/api',
|
|
target: 'http://localhost:8080'
|
|
}
|
|
],
|
|
test: [
|
|
{
|
|
prefix: '/api',
|
|
target: 'http://localhost:8080'
|
|
}
|
|
],
|
|
prod: [
|
|
{
|
|
prefix: '/api',
|
|
target: 'http://localhost:8080'
|
|
}
|
|
]
|
|
}
|
|
|
|
export function getProxyConfig(envType: ProxyType = 'dev'): ProxyConfig {
|
|
return proxyConfigMappings[envType]
|
|
}
|