telefuncUrl

Environment: Server & Browser.

By default, Telefunc makes its HTTP requests by using the URL /_telefunc.

We can use config.telefuncUrl to change Telefunc's URL.

// Environment: Server

import { config } from 'telefunc'

config.telefuncUrl = '/api/_telefunc'
// Environment: Browser

import { config } from 'telefunc/client'

config.telefuncUrl = '/api/_telefunc'
⚠ Make sure to change the URL at both the Telefunc Client and the Telefunc Server.