diff --git a/src/content/docs/en/guides/middleware.mdx b/src/content/docs/en/guides/middleware.mdx
index d7a6688a4c8b0..4657879ff0a8d 100644
--- a/src/content/docs/en/guides/middleware.mdx
+++ b/src/content/docs/en/guides/middleware.mdx
@@ -45,7 +45,7 @@ You can import and use the utility function `defineMiddleware()` to take advanta
```ts
// src/middleware.ts
-import { defineMiddleware } from "astro/middleware";
+import { defineMiddleware } from "astro:middleware";
// `context` and `next` are automatically typed
export const onRequest = defineMiddleware((context, next) => {
@@ -137,7 +137,7 @@ export const onRequest = async (context, next) => {
Multiple middlewares can be joined in a specified order using [`sequence()`](#sequence):
```js title="src/middleware.js"
-import { sequence } from "astro/middleware";
+import { sequence } from "astro:middleware";
async function validation(_, next) {
console.log("validation request");
@@ -218,4 +218,4 @@ This function can be used by integrations/adapters to programmatically execute t
### `trySerializeLocals`
-A low-level API that takes in any value and tries to return a serialized version (a string) of it. If the value cannot be serialized, the function will throw a runtime error.
\ No newline at end of file
+A low-level API that takes in any value and tries to return a serialized version (a string) of it. If the value cannot be serialized, the function will throw a runtime error.
diff --git a/src/content/docs/en/guides/troubleshooting.mdx b/src/content/docs/en/guides/troubleshooting.mdx
index 1d80ed7c8edb6..8d51a7beec1f9 100644
--- a/src/content/docs/en/guides/troubleshooting.mdx
+++ b/src/content/docs/en/guides/troubleshooting.mdx
@@ -198,7 +198,7 @@ To help you debug your Astro components, Astro provides a built-in [``]
```astro {2,7}
---
-import { Debug } from 'astro/components';
+import { Debug } from 'astro:components';
const sum = (a, b) => a + b;
---
@@ -210,7 +210,7 @@ The Debug component supports a variety of syntax options for even more flexible
```astro {2,7-9}
---
-import { Debug } from 'astro/components';
+import { Debug } from 'astro:components';
const sum = (a, b) => a + b;
const answer = sum(2, 4);
---
diff --git a/src/content/docs/en/reference/api-reference.mdx b/src/content/docs/en/reference/api-reference.mdx
index 5c82a9238c198..715858b0f2fe2 100644
--- a/src/content/docs/en/reference/api-reference.mdx
+++ b/src/content/docs/en/reference/api-reference.mdx
@@ -1044,13 +1044,13 @@ export default function () {
## Built-in Components
-Astro includes several built-in components for you to use in your projects. All built-in components are available in `.astro` files via `import {} from 'astro/components';`.
+Astro includes several built-in components for you to use in your projects. All built-in components are available in `.astro` files via `import {} from 'astro:components';`.
### ``
```astro 'theme="dark-plus"' /wrap\b/ /(inline) \/>/
---
-import { Code } from 'astro/components';
+import { Code } from 'astro:components';
---
@@ -1112,7 +1112,7 @@ See the [list of languages supported by Prism](https://prismjs.com/#supported-la
```astro
---
-import { Debug } from 'astro/components';
+import { Debug } from 'astro:components';
const serverObject = {
a: 0,
b: "string",