Skip to content

Commit 830a267

Browse files
Princesseuhastrobot-houston
authored andcommitted
[ci] format
1 parent a9fd221 commit 830a267

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/astro/src/content/vite-plugin-content-assets.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)