File tree Expand file tree Collapse file tree
packages/astro/src/content Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,11 +81,15 @@ export function astroContentAssetPropagationPlugin({
8181 const ssrEnv = server . environments [ ASTRO_VITE_ENVIRONMENT_NAMES . ssr ] ;
8282 if ( isRunnableDevEnvironment ( ssrEnv ) ) {
8383 environment = ssrEnv ;
84- } else if ( isRunnableDevEnvironment ( server . environments [ ASTRO_VITE_ENVIRONMENT_NAMES . astro ] ) ) {
84+ } else if (
85+ isRunnableDevEnvironment ( server . environments [ ASTRO_VITE_ENVIRONMENT_NAMES . astro ] )
86+ ) {
8587 // When the ssr environment is not a RunnableDevEnvironment (e.g. when using the
8688 // Cloudflare adapter which runs ssr in workerd), fall back to the 'astro' environment
8789 // which is always a RunnableDevEnvironment available in dev.
88- environment = server . environments [ ASTRO_VITE_ENVIRONMENT_NAMES . astro ] as RunnableDevEnvironment ;
90+ environment = server . environments [
91+ ASTRO_VITE_ENVIRONMENT_NAMES . astro
92+ ] as RunnableDevEnvironment ;
8993 }
9094 } ,
9195 transform : {
You can’t perform that action at this time.
0 commit comments