2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00
Files
panel/web/settings/proxy-config.example.ts
2024-10-20 19:55:14 +08:00

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]
}