astro 2.10.2 → 2.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "2.10.2";
1
+ const ASTRO_VERSION = "2.10.3";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -97,7 +97,7 @@ async function createVite(commandConfig, { settings, logging, mode, command, fs
97
97
  htmlVitePlugin(),
98
98
  jsxVitePlugin({ settings, logging }),
99
99
  astroPostprocessVitePlugin(),
100
- mode === "dev" && astroIntegrationsContainerPlugin({ settings, logging }),
100
+ astroIntegrationsContainerPlugin({ settings, logging }),
101
101
  astroScriptsPageSSRPlugin({ settings }),
102
102
  astroHeadPlugin(),
103
103
  astroScannerPlugin({ settings, logging }),
@@ -23,7 +23,7 @@ async function dev(inlineConfig) {
23
23
  base: restart.container.settings.config.base
24
24
  })
25
25
  );
26
- const currentVersion = "2.10.2";
26
+ const currentVersion = "2.10.3";
27
27
  if (currentVersion.includes("-")) {
28
28
  warn(logging, null, msg.prerelease({ currentVersion }));
29
29
  }
@@ -47,7 +47,7 @@ function serverStart({
47
47
  base,
48
48
  isRestart = false
49
49
  }) {
50
- const version = "2.10.2";
50
+ const version = "2.10.3";
51
51
  const localPrefix = `${dim("\u2503")} Local `;
52
52
  const networkPrefix = `${dim("\u2503")} Network `;
53
53
  const emptyPrefix = " ".repeat(11);
@@ -233,7 +233,7 @@ function printHelp({
233
233
  message.push(
234
234
  linebreak(),
235
235
  ` ${bgGreen(black(` ${commandName} `))} ${green(
236
- `v${"2.10.2"}`
236
+ `v${"2.10.3"}`
237
237
  )} ${headline}`
238
238
  );
239
239
  }
@@ -7,9 +7,13 @@ function astroIntegrationsContainerPlugin({
7
7
  return {
8
8
  name: "astro:integration-container",
9
9
  configureServer(server) {
10
+ if (server.config.isProduction)
11
+ return;
10
12
  runHookServerSetup({ config: settings.config, server, logging });
11
13
  },
12
14
  async buildStart() {
15
+ if (settings.injectedRoutes.length === settings.resolvedInjectedRoutes.length)
16
+ return;
13
17
  settings.resolvedInjectedRoutes = await Promise.all(
14
18
  settings.injectedRoutes.map((route) => resolveEntryPoint.call(this, route))
15
19
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
5
5
  "type": "module",
6
6
  "author": "withastro",