disableNamingConvention

Environment: server.

Disable the telefunction naming convention. See Guides > Event-based telefunctions > Naming convention.

// Environment: server
 
import { config } from 'telefunc'
 
config.disableNamingConvention = true

You usually define server-side configs (import { config } from 'telefunc') at your server entry. For example if you use Express.js:

// /server/index.js
// Environment: server
 
import express from 'express'
import { config } from 'telefunc'
 
const app = express()
 
// Config values can be set here
config.someServerSideSetting = 'some-value'