2.7.3 公共运行时配置 (Public Runtime Config) 与服务器端配置 (Server Runtime Config) (已过时,了解即可) 2.7.3 公共运行时配置 (Public Runtime Config) 与服务器端配置 (Server Runtime Config) (已过时,了解即可) 在 Next.js 的早期版本中, 文件允许你定义两种类型的运行时配置:公共运行时配置 (Public Runtime Config) 和服务器端配置 (Server Runtime Config)。 这两种配置方式旨在解决在不同环境下(客户端和服务器端)访问配置变量的需求。 虽然现在推荐使用 和 ,但了解这些旧方法对于理解 Next.