FeatureFuel
1

How to use ”config.js“ instead of ".env“ file in dev environment?

Source: directus/directus#23160 · opened by @liuzz99
Summary

When I run directus with quickstart method. I can create a file named config.js in root directory. Then Execute the following command to successfully run the project:


When I git clone directus from github, and run directus with the following steps:
1. install and build

2.create config.js in '/api' and write database configurations and other security configurations
3. pnpm --filter command


In the third step I get an error, It can't find the configuration file.

So how do I use config.js in dev environment?

Basic Example

_No response_

Motivation

I need to get the database key and other information from the key vault before initializing the configuration, so I want to use the JavaScript file

Detailed Design

N/A

Requirements List

N/A

Drawbacks

N/A

Alternatives

N/A

Adoption Strategy

N/A

Unresolved Questions

_No response_

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests