Skip to content

Commit

Permalink
fix(server-route): expose default locale
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Oct 13, 2023
1 parent 081bc2f commit 42f55a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/routes/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default eventHandler(async () => {

const appConfig = useAppConfig()
const runtimeConfig = useRuntimeConfig()
const { app, appConfigSchema, studio, content: { sources, ignores, locales, highlight, navigation, documentDriven, experimental } } = runtimeConfig
const { app, appConfigSchema, studio, content: { sources, ignores, locales, defaultLocale, highlight, navigation, documentDriven, experimental } } = runtimeConfig

// Delete GitHub tokens for multiple source to avoid exposing them
const safeSources: any = {}
Expand Down Expand Up @@ -68,7 +68,7 @@ export default eventHandler(async () => {
tokensConfigSchema,
tokensConfig,
// @nuxt/content
content: { sources: safeSources, ignores, locales, highlight, navigation, documentDriven, experimental },
content: { sources: safeSources, ignores, locales, defaultLocale, highlight, navigation, documentDriven, experimental },
// nuxt-component-meta
components: filteredComponents
}
Expand Down

0 comments on commit 42f55a4

Please sign in to comment.