Skip to content

README.md is ambiguos  #98

@tad1693

Description

@tad1693

On the project local README it says Create a src/config/local.json file and customize it for your local setup, you can use src/config/local.example.json suggesting to use local.example.json from the src/config directory if the user doesn't want to create the local.json, but on the config/index.js file never verifies if local.json exists.

Here is the snapshot of the config/index.js file

const path = require("path");
const env = process.env.NODE_ENV || "local";

const configFile = require(path.join(__dirname, `${env}.json`));

A better solution will be to use by default the local.example.json

This is the output of the console after running the project without having created the local.json file

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions