Skip to content

process.env.DOCUSAURUS_CURRENT_LOCALE is undefined in serve #8849

Closed as not planned
@Josh-Cena

Description

Discussed in #8848

Originally posted by laojun March 30, 2023
Hi:
First of all, Thanks for the v2.4。

I use process.env.DOCUSAURUS_CURRENT_LOCALE to solve my problem in https://github.com/facebook/docusaurus/discussions/8745。

Here is my docusaurus.config.js

baseUrl: `/${process.env.DOCUSAURUS_CURRENT_LOCALE}/`

Seems right when i run build
image

But error when i run server
image

How can i make it right when i run server?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    closed: working as intendedThis issue is intended behavior, there's no need to take any action.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions