diff --git a/src/content/docs/zh-cn/guides/configuring-astro.mdx b/src/content/docs/zh-cn/guides/configuring-astro.mdx index b8fdedd437364..ebc658ad4df5e 100644 --- a/src/content/docs/zh-cn/guides/configuring-astro.mdx +++ b/src/content/docs/zh-cn/guides/configuring-astro.mdx @@ -116,7 +116,7 @@ export default defineConfig({ ``` :::note -Vite 特定的 `import.meta` 属性,如 `import.meta.env` 或 `import.meta.glob`,*无法*在你的配置文件中访问。我们推荐使用 [dotenv](https://github.com/motdotla/dotenv) 或 [fast-glob](https://github.com/mrmlnc/fast-glob) 作为替代方案。 +Vite 特定的 `import.meta` 属性,如 `import.meta.env` 或 `import.meta.glob`,*无法*在你的配置文件中访问。我们推荐使用 [dotenv](https://github.com/motdotla/dotenv) 或 [fast-glob](https://github.com/mrmlnc/fast-glob) 作为替代方案。此外,[tsconfig 路径别名](https://www.typescriptlang.org/tsconfig#paths) 将不会被解析。在该文件中,对模块的导入应使用相对路径。 ::: ## 自定义输出文件名