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_
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.
Comments
Similar requests
Allow CSP Rules to be modified in Directus Cloud Config
3 votes · 0 comments
Code-first configuration of schema, roles and permissions
274 votes · 0 comments
Replacing a file is confusing
12 votes · 0 comments
Introduce UI-Based Configuration for OAuth/SSO Providers
7 votes · 0 comments
Implement `onbeforeunload` to notify user when leaving Directus App with unsaved content.
2 votes · 0 comments
No comments yet.