Skip to content

Commit

Permalink
fix: ssr manifest 正确读取环境变量 (#12357)
Browse files Browse the repository at this point in the history
* fix: ssr manifest 正确读取环境变量

* chore: 新增 ssr 黑盒变量 SSR_RESOURCE_DIR
  • Loading branch information
Jinbao1001 authored May 7, 2024
1 parent a82a386 commit fa7d9fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bundler-webpack/src/config/definePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function resolveDefine(opts: { define: any; publicPath?: string }) {

return {
'process.env': env,
'process.env.SSR_RESOURCE_DIR': 'process.env.SSR_RESOURCE_DIR',
...define,
};
}
Expand Down

0 comments on commit fa7d9fa

Please sign in to comment.