shield

Environment: server.
Default: false.

Whether to generate shield() in development.

// Environment: server
 
import { config } from 'telefunc'
 
config.shield.dev = true
⚠️
This can slow down development speed. Depending on your app and how fast your computer is, the decreased development speed can range from unnoticeable to significant.

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'