Configurable Content-Layer Config File #1006
Replies: 2 comments
-
Please put the config file in the root please? |
Beta Was this translation helpful? Give feedback.
-
tbh I'd rather just move it to the root by default, instead of making it configurable. |
Beta Was this translation helpful? Give feedback.
-
Summary
Currently, the content layer uses
content/config.ts
for configuration. Make this configurable.Background & Motivation
With the new Content Layer able to pull content from anywhere, it is no longer a valid assumption that the
content/
folder will be utilized for anything butconfig.ts
. It can feel a little silly havingcontent/
around just to holdconfig.ts
.Goals
Add some sort of configuration to
astro.config.mjs
to allow customizing which file is used by the content layer for configuration.Example
Beta Was this translation helpful? Give feedback.
All reactions