stickyboard.config.js file includes metadata(e.g., title, description) required to render the view, and environment variables will be used to front-end. You can change this file directly.
Environment variables for the back-end must be included in .env file(e.g., .env.development, .env.production). Refer to the below section.
stickyboard.config.jsmodule.exports = {metadata: {title: 'StickyBoard',description: 'On-Demand Dashboard Solution based on React',meta_image: '/static/image/StickyBoard_logo_only.png',favicon: '/static/image/favicon.png',},env: {NODE_ENV: process.env.NODE_ENV,SAMPLE: process.env.SAMPLE,},};
.env file includes several environment variables required to run Node.js server.
StickyBoard uses dotenv package to load this file.
below code describes the sample .env file for StickyBoard.
.envNODE_ENV=productionPORT=3000DB_DATABASE=stickyboardDB_HOST=localhostDB_USER=rootDB_PASS=passwordDB_PORT=3306DB_DIALECT=mysqlSECRET_KEY=yoursecretkey