We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bb956e commit cdbfb59Copy full SHA for cdbfb59
1 file changed
packages/start/src/config/env.ts
@@ -88,9 +88,15 @@ export function envPlugin(options?: EnvPluginOptions): Plugin {
88
return convertObjectToModule(vars);
89
}
90
if (id === SERVER_RUNTIME_LOADER) {
91
+ if (!opts?.ssr) {
92
+ return SERVER_ONLY_MODULE;
93
+ }
94
return runtimeCode;
95
96
if (id === SERVER_RUNTIME_ENV) {
97
98
99
100
return SERVER_RUNTIME_CODE;
101
102
return null;
0 commit comments