N
Nuxt8mo ago
Alireza

how to define types for runtimeConfig keys?

example:
runtimeConfig: {
public: {
//-> this can be of type 'apple' | 'banana' | 'cherry'
fruit: 'apple',
}
}
runtimeConfig: {
public: {
//-> this can be of type 'apple' | 'banana' | 'cherry'
fruit: 'apple',
}
}
1 Reply
Flo
Flo8mo ago
Nuxt
Runtime Config · Nuxt Advanced
Nuxt provides a runtime config API to expose configuration and secrets within your application.
Want results from more Discord servers?
Add your server