Private/Get-DuneApiUrl.ps1

<#
.SYNOPSIS
Return the Dune API base URL for the specified instance.
 
.DESCRIPTION
Maps a Dune instance name (Prod, Dev, Test, Local) to the corresponding API base URL.
 
.PARAMETER DuneInstance
The target Dune instance. Valid values: Prod, Dev, Test, Local.
 
.EXAMPLE
PS> Get-DuneApiUrl -DuneInstance Dev
Returns 'https://dev.duneframework.com/api'.
#>

function Get-DuneApiUrl {
    param(
        [Parameter(Mandatory)]
        [ValidateSet("Prod", "Dev","Test","Local")]
        [string]$DuneInstance
    )

    switch ($DuneInstance) {
        'Prod' { return 'https://duneframework.com/api' }
        'Dev' { return 'https://dev.duneframework.com/api' }
        'Test' { return 'https://test.duneframework.com/api' }
        'Local' { return 'https://localhost:5001/api' }
    }
}