Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Nuxt Content: defineCollection at runtime - Nuxt
N
Nuxt
•
4w ago
•
5 replies
fulbert6414
Nuxt Content: defineCollection at runtime
nuxt4
Hello
,
I
'm new to Nuxt
. So maybe I missed something really stupid
.
So the setup is Nuxt
+ UI
+ Content
.
I have a couple different collections for my content
(listed in
app.config.ts > collections
app.config.ts > collections
.
I define them in the
content.config.ts
content.config.ts
as per the doc
.
Then depending on the route slug
, I
'll query the correct collection
.
All this works fine
.
.
. The thing is
, I
'd like to be able to defineCollection during runtime
.
First because I
'm unable to read my
appConfig
appConfig
in
content.config.ts
content.config.ts
, so I have to list twice the name of my collection
(in
app
app
for querying and in
content
content
for defining
)
.
Then
, maybe
, to let my user fetch is own collections
(git
)
Can you help me with this
?
Nuxt
Join
Nuxt Community Chat Server
31,788
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
dyld[79748]: missing symbol called - @nuxt/content - Deno runtime
N
Nuxt / ❓・help
10mo ago
nuxt/content ssr?
N
Nuxt / ❓・help
4w ago
nuxt/content styling
N
Nuxt / ❓・help
2y ago