Edit this page

disableNamingConvention

Environment: server.

Opt out of the naming convention for event-based telefunctions (removes all related warnings).

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

Opting out of the naming convention is perfectly fine, though we recommend having a clear reason for doing so.

We recommend reading Guides > Event-based telefunctions before opting out. It explains why event-based telefunctions lead to increased:

  • Development speed
  • Security
  • Performance

Feel free to reach out if you have questions.

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'

See also