Skip to content

Commit 42f55a4

Browse files
committedOct 13, 2023
fix(server-route): expose default locale
1 parent 081bc2f commit 42f55a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎src/runtime/server/routes/studio.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default eventHandler(async () => {
3131

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

3636
// Delete GitHub tokens for multiple source to avoid exposing them
3737
const safeSources: any = {}
@@ -68,7 +68,7 @@ export default eventHandler(async () => {
6868
tokensConfigSchema,
6969
tokensConfig,
7070
// @nuxt/content
71-
content: { sources: safeSources, ignores, locales, highlight, navigation, documentDriven, experimental },
71+
content: { sources: safeSources, ignores, locales, defaultLocale, highlight, navigation, documentDriven, experimental },
7272
// nuxt-component-meta
7373
components: filteredComponents
7474
}

0 commit comments

Comments
 (0)
Please sign in to comment.