summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/basics/README.md2
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/basics/sandbox.config.json2
-rw-r--r--examples/blog/README.md2
-rw-r--r--examples/blog/package.json8
-rw-r--r--examples/blog/sandbox.config.json2
-rw-r--r--examples/blog/src/content/blog/markdown-style-guide.md4
-rw-r--r--examples/blog/src/pages/blog/[...slug].astro2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/deno/README.md2
-rw-r--r--examples/deno/package.json4
-rw-r--r--examples/deno/sandbox.config.json2
-rw-r--r--examples/framework-alpine/package.json4
-rw-r--r--examples/framework-alpine/sandbox.config.json2
-rw-r--r--examples/framework-lit/package.json4
-rw-r--r--examples/framework-lit/sandbox.config.json2
-rw-r--r--examples/framework-multiple/astro.config.mjs8
-rw-r--r--examples/framework-multiple/package.json12
-rw-r--r--examples/framework-multiple/sandbox.config.json2
-rw-r--r--examples/framework-multiple/src/components/preact/PreactCounter.tsx (renamed from examples/framework-multiple/src/components/PreactCounter.tsx)0
-rw-r--r--examples/framework-multiple/src/components/react/ReactCounter.tsx (renamed from examples/framework-multiple/src/components/ReactCounter.tsx)0
-rw-r--r--examples/framework-multiple/src/components/solid/SolidCounter.tsx (renamed from examples/framework-multiple/src/components/SolidCounter.tsx)0
-rw-r--r--examples/framework-multiple/src/components/svelte/SvelteCounter.svelte (renamed from examples/framework-multiple/src/components/SvelteCounter.svelte)0
-rw-r--r--examples/framework-multiple/src/components/vue/VueCounter.vue (renamed from examples/framework-multiple/src/components/VueCounter.vue)0
-rw-r--r--examples/framework-multiple/src/pages/index.astro10
-rw-r--r--examples/framework-preact/package.json4
-rw-r--r--examples/framework-preact/sandbox.config.json2
-rw-r--r--examples/framework-react/package.json4
-rw-r--r--examples/framework-react/sandbox.config.json2
-rw-r--r--examples/framework-solid/package.json4
-rw-r--r--examples/framework-solid/sandbox.config.json2
-rw-r--r--examples/framework-svelte/package.json4
-rw-r--r--examples/framework-svelte/sandbox.config.json2
-rw-r--r--examples/framework-vue/package.json4
-rw-r--r--examples/framework-vue/sandbox.config.json2
-rw-r--r--examples/hackernews/README.md2
-rw-r--r--examples/hackernews/package.json4
-rw-r--r--examples/hackernews/sandbox.config.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json4
-rw-r--r--examples/minimal/README.md2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/minimal/sandbox.config.json2
-rw-r--r--examples/non-html-pages/README.md2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/non-html-pages/sandbox.config.json2
-rw-r--r--examples/portfolio/README.md2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/portfolio/sandbox.config.json2
-rw-r--r--examples/portfolio/src/pages/work/[...slug].astro2
-rw-r--r--examples/ssr/package.json6
-rw-r--r--examples/ssr/src/pages/cart.astro2
-rw-r--r--examples/with-markdoc/README.md2
-rw-r--r--examples/with-markdoc/package.json4
-rw-r--r--examples/with-markdoc/sandbox.config.json2
-rw-r--r--examples/with-markdown-plugins/package.json4
-rw-r--r--examples/with-markdown-plugins/sandbox.config.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-markdown-shiki/sandbox.config.json2
-rw-r--r--examples/with-mdx/package.json6
-rw-r--r--examples/with-mdx/sandbox.config.json2
-rw-r--r--examples/with-nanostores/package.json4
-rw-r--r--examples/with-nanostores/sandbox.config.json2
-rw-r--r--examples/with-tailwindcss/package.json5
-rw-r--r--examples/with-tailwindcss/sandbox.config.json2
-rw-r--r--examples/with-vite-plugin-pwa/README.md2
-rw-r--r--examples/with-vite-plugin-pwa/package.json2
-rw-r--r--examples/with-vite-plugin-pwa/sandbox.config.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--examples/with-vitest/sandbox.config.json2
70 files changed, 103 insertions, 96 deletions
diff --git a/examples/basics/README.md b/examples/basics/README.md
index 839455718..5369073b9 100644
--- a/examples/basics/README.md
+++ b/examples/basics/README.md
@@ -43,7 +43,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/basics/package.json b/examples/basics/package.json
index b6513759e..dd81a20af 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/basics/sandbox.config.json b/examples/basics/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/basics/sandbox.config.json
+++ b/examples/basics/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/blog/README.md b/examples/blog/README.md
index 11bc070ef..67d0cfc2e 100644
--- a/examples/blog/README.md
+++ b/examples/blog/README.md
@@ -53,7 +53,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/blog/package.json b/examples/blog/package.json
index a3669469f..5e633254c 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^0.19.7",
- "@astrojs/rss": "^2.4.4",
- "@astrojs/sitemap": "^2.0.2",
- "astro": "^2.10.9"
+ "@astrojs/mdx": "^1.0.0-beta.0",
+ "@astrojs/rss": "^3.0.0-beta.0",
+ "@astrojs/sitemap": "^3.0.0-beta.0",
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/blog/sandbox.config.json b/examples/blog/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/blog/sandbox.config.json
+++ b/examples/blog/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/blog/src/content/blog/markdown-style-guide.md b/examples/blog/src/content/blog/markdown-style-guide.md
index 5775c88c0..877ec2f4a 100644
--- a/examples/blog/src/content/blog/markdown-style-guide.md
+++ b/examples/blog/src/content/blog/markdown-style-guide.md
@@ -99,7 +99,7 @@ we can use 3 backticks ``` in new line and write snippet and close with 3 backti
````markdown
```html
-<!DOCTYPE html>
+<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
@@ -115,7 +115,7 @@ we can use 3 backticks ``` in new line and write snippet and close with 3 backti
Output
```html
-<!DOCTYPE html>
+<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
diff --git a/examples/blog/src/pages/blog/[...slug].astro b/examples/blog/src/pages/blog/[...slug].astro
index 12436c2b2..07dbce26b 100644
--- a/examples/blog/src/pages/blog/[...slug].astro
+++ b/examples/blog/src/pages/blog/[...slug].astro
@@ -1,5 +1,5 @@
---
-import { CollectionEntry, getCollection } from 'astro:content';
+import { type CollectionEntry, getCollection } from 'astro:content';
import BlogPost from '../../layouts/BlogPost.astro';
export async function getStaticPaths() {
diff --git a/examples/component/package.json b/examples/component/package.json
index ee1151ea1..f2b226262 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/deno/README.md b/examples/deno/README.md
index 98f7ee020..af49ebcb7 100644
--- a/examples/deno/README.md
+++ b/examples/deno/README.md
@@ -42,7 +42,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| | (preview uses Deno CLI) |
diff --git a/examples/deno/package.json b/examples/deno/package.json
index 410082241..7fe421d50 100644
--- a/examples/deno/package.json
+++ b/examples/deno/package.json
@@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
},
"devDependencies": {
- "@astrojs/deno": "^4.3.0"
+ "@astrojs/deno": "^5.0.0-beta.0"
}
}
diff --git a/examples/deno/sandbox.config.json b/examples/deno/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/deno/sandbox.config.json
+++ b/examples/deno/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 75113f4e3..2c1bd53f8 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/alpinejs": "^0.2.2",
+ "@astrojs/alpinejs": "^0.3.0-beta.0",
"@types/alpinejs": "^3.7.1",
"alpinejs": "^3.12.2",
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/framework-alpine/sandbox.config.json b/examples/framework-alpine/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-alpine/sandbox.config.json
+++ b/examples/framework-alpine/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index d18731fa5..f8091eb74 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/lit": "^2.1.1",
+ "@astrojs/lit": "^3.0.0-beta.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"lit": "^2.7.5"
}
}
diff --git a/examples/framework-lit/sandbox.config.json b/examples/framework-lit/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-lit/sandbox.config.json
+++ b/examples/framework-lit/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-multiple/astro.config.mjs b/examples/framework-multiple/astro.config.mjs
index 4b50887cd..36f75aec2 100644
--- a/examples/framework-multiple/astro.config.mjs
+++ b/examples/framework-multiple/astro.config.mjs
@@ -8,5 +8,11 @@ import solid from '@astrojs/solid-js';
// https://astro.build/config
export default defineConfig({
// Enable many frameworks to support all different kinds of components.
- integrations: [preact(), react(), svelte(), vue(), solid()],
+ integrations: [
+ preact({ include: ['**/preact/*'] }),
+ solid({ include: ['**/solid/*'] }),
+ react({ include: ['**/react/*'] }),
+ svelte(),
+ vue(),
+ ],
});
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 9405a65b8..9af1d6cad 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -11,12 +11,12 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/preact": "^2.2.2",
- "@astrojs/react": "^2.2.2",
- "@astrojs/solid-js": "^2.2.0",
- "@astrojs/svelte": "^3.1.0",
- "@astrojs/vue": "^2.2.1",
- "astro": "^2.10.9",
+ "@astrojs/preact": "^3.0.0-beta.1",
+ "@astrojs/react": "^3.0.0-beta.2",
+ "@astrojs/solid-js": "^3.0.0-beta.1",
+ "@astrojs/svelte": "^4.0.0-beta.0",
+ "@astrojs/vue": "^3.0.0-beta.0",
+ "astro": "^3.0.0-beta.2",
"preact": "^10.15.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/examples/framework-multiple/sandbox.config.json b/examples/framework-multiple/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-multiple/sandbox.config.json
+++ b/examples/framework-multiple/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-multiple/src/components/PreactCounter.tsx b/examples/framework-multiple/src/components/preact/PreactCounter.tsx
index 2fb0a54b9..2fb0a54b9 100644
--- a/examples/framework-multiple/src/components/PreactCounter.tsx
+++ b/examples/framework-multiple/src/components/preact/PreactCounter.tsx
diff --git a/examples/framework-multiple/src/components/ReactCounter.tsx b/examples/framework-multiple/src/components/react/ReactCounter.tsx
index 1cff97917..1cff97917 100644
--- a/examples/framework-multiple/src/components/ReactCounter.tsx
+++ b/examples/framework-multiple/src/components/react/ReactCounter.tsx
diff --git a/examples/framework-multiple/src/components/SolidCounter.tsx b/examples/framework-multiple/src/components/solid/SolidCounter.tsx
index 153feaddc..153feaddc 100644
--- a/examples/framework-multiple/src/components/SolidCounter.tsx
+++ b/examples/framework-multiple/src/components/solid/SolidCounter.tsx
diff --git a/examples/framework-multiple/src/components/SvelteCounter.svelte b/examples/framework-multiple/src/components/svelte/SvelteCounter.svelte
index 01e58574a..01e58574a 100644
--- a/examples/framework-multiple/src/components/SvelteCounter.svelte
+++ b/examples/framework-multiple/src/components/svelte/SvelteCounter.svelte
diff --git a/examples/framework-multiple/src/components/VueCounter.vue b/examples/framework-multiple/src/components/vue/VueCounter.vue
index 74820f7f0..74820f7f0 100644
--- a/examples/framework-multiple/src/components/VueCounter.vue
+++ b/examples/framework-multiple/src/components/vue/VueCounter.vue
diff --git a/examples/framework-multiple/src/pages/index.astro b/examples/framework-multiple/src/pages/index.astro
index 94630aa1e..ccf5aaa71 100644
--- a/examples/framework-multiple/src/pages/index.astro
+++ b/examples/framework-multiple/src/pages/index.astro
@@ -4,12 +4,12 @@ import '../styles/global.css';
// Component Imports
// For JSX components, all the common ways of exporting (under a namespace, specific export, default export etc) are supported!
-import * as react from '../components/ReactCounter';
-import { PreactCounter } from '../components/PreactCounter';
-import SolidCounter from '../components/SolidCounter';
+import * as react from '../components/react/ReactCounter';
+import { PreactCounter } from '../components/preact/PreactCounter';
+import SolidCounter from '../components/solid/SolidCounter';
-import VueCounter from '../components/VueCounter.vue';
-import SvelteCounter from '../components/SvelteCounter.svelte';
+import VueCounter from '../components/vue/VueCounter.vue';
+import SvelteCounter from '../components/svelte/SvelteCounter.svelte';
// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 503a2b22b..1c38428c3 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/preact": "^2.2.2",
+ "@astrojs/preact": "^3.0.0-beta.1",
"@preact/signals": "^1.1.3",
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"preact": "^10.15.1"
}
}
diff --git a/examples/framework-preact/sandbox.config.json b/examples/framework-preact/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-preact/sandbox.config.json
+++ b/examples/framework-preact/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 0110bb53b..3b4bd62e0 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/react": "^2.2.2",
+ "@astrojs/react": "^3.0.0-beta.2",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-react/sandbox.config.json b/examples/framework-react/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-react/sandbox.config.json
+++ b/examples/framework-react/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index 302fa3abc..ea4973fe6 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/solid-js": "^2.2.0",
- "astro": "^2.10.9",
+ "@astrojs/solid-js": "^3.0.0-beta.1",
+ "astro": "^3.0.0-beta.2",
"solid-js": "^1.7.6"
}
}
diff --git a/examples/framework-solid/sandbox.config.json b/examples/framework-solid/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-solid/sandbox.config.json
+++ b/examples/framework-solid/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 5f52209a2..4eb4b38e6 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/svelte": "^3.1.0",
- "astro": "^2.10.9",
+ "@astrojs/svelte": "^4.0.0-beta.0",
+ "astro": "^3.0.0-beta.2",
"svelte": "^3.59.1"
}
}
diff --git a/examples/framework-svelte/sandbox.config.json b/examples/framework-svelte/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-svelte/sandbox.config.json
+++ b/examples/framework-svelte/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index f06c2140a..2e9d5efcc 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/vue": "^2.2.1",
- "astro": "^2.10.9",
+ "@astrojs/vue": "^3.0.0-beta.0",
+ "astro": "^3.0.0-beta.2",
"vue": "^3.3.4"
}
}
diff --git a/examples/framework-vue/sandbox.config.json b/examples/framework-vue/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/framework-vue/sandbox.config.json
+++ b/examples/framework-vue/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/hackernews/README.md b/examples/hackernews/README.md
index 937ad23ea..042a7807b 100644
--- a/examples/hackernews/README.md
+++ b/examples/hackernews/README.md
@@ -48,7 +48,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index d68e7e3e3..259aa9a4e 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/node": "^5.3.4",
- "astro": "^2.10.9"
+ "@astrojs/node": "^6.0.0-beta.0",
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/hackernews/sandbox.config.json b/examples/hackernews/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/hackernews/sandbox.config.json
+++ b/examples/hackernews/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 05c0a6c4c..864349b97 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index 30a61849a..296c4d571 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -12,8 +12,8 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
- "@astrojs/node": "^5.3.4",
- "astro": "^2.10.9",
+ "@astrojs/node": "^6.0.0-beta.0",
+ "astro": "^3.0.0-beta.2",
"html-minifier": "^4.0.0"
}
}
diff --git a/examples/minimal/README.md b/examples/minimal/README.md
index 3c261d317..20bad6615 100644
--- a/examples/minimal/README.md
+++ b/examples/minimal/README.md
@@ -36,7 +36,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index e8e04fd77..128577213 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/minimal/sandbox.config.json b/examples/minimal/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/minimal/sandbox.config.json
+++ b/examples/minimal/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/non-html-pages/README.md b/examples/non-html-pages/README.md
index d1caeed41..ecdee84b1 100644
--- a/examples/non-html-pages/README.md
+++ b/examples/non-html-pages/README.md
@@ -41,7 +41,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index e72d52d6f..aeb517c4c 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/non-html-pages/sandbox.config.json b/examples/non-html-pages/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/non-html-pages/sandbox.config.json
+++ b/examples/non-html-pages/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/portfolio/README.md b/examples/portfolio/README.md
index 7ca90501a..3c8ee3aa4 100644
--- a/examples/portfolio/README.md
+++ b/examples/portfolio/README.md
@@ -19,7 +19,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index d87ef12b4..e6e240709 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/portfolio/sandbox.config.json b/examples/portfolio/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/portfolio/sandbox.config.json
+++ b/examples/portfolio/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/portfolio/src/pages/work/[...slug].astro b/examples/portfolio/src/pages/work/[...slug].astro
index 795ebffe5..84ed133a4 100644
--- a/examples/portfolio/src/pages/work/[...slug].astro
+++ b/examples/portfolio/src/pages/work/[...slug].astro
@@ -1,5 +1,5 @@
---
-import { CollectionEntry, getCollection } from 'astro:content';
+import { type CollectionEntry, getCollection } from 'astro:content';
import BaseLayout from '../../layouts/BaseLayout.astro';
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index d25c37e23..29122e2bb 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -12,9 +12,9 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
- "@astrojs/node": "^5.3.4",
- "@astrojs/svelte": "^3.1.0",
- "astro": "^2.10.9",
+ "@astrojs/node": "^6.0.0-beta.0",
+ "@astrojs/svelte": "^4.0.0-beta.0",
+ "astro": "^3.0.0-beta.2",
"svelte": "^3.59.1"
}
}
diff --git a/examples/ssr/src/pages/cart.astro b/examples/ssr/src/pages/cart.astro
index ebc2f1472..40e5cf126 100644
--- a/examples/ssr/src/pages/cart.astro
+++ b/examples/ssr/src/pages/cart.astro
@@ -3,7 +3,7 @@ import Header from '../components/Header.astro';
import Container from '../components/Container.astro';
import { getCart } from '../api';
-if (!Astro.cookies.get('user-id').value) {
+if (!Astro.cookies.get('user-id')) {
return Astro.redirect('/');
}
diff --git a/examples/with-markdoc/README.md b/examples/with-markdoc/README.md
index 4f44648da..1a1acc1a5 100644
--- a/examples/with-markdoc/README.md
+++ b/examples/with-markdoc/README.md
@@ -45,7 +45,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index e60ddd132..cf7fb6a0c 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/markdoc": "^0.4.4",
- "astro": "^2.10.9"
+ "@astrojs/markdoc": "^1.0.0-beta.1",
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/with-markdoc/sandbox.config.json b/examples/with-markdoc/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-markdoc/sandbox.config.json
+++ b/examples/with-markdoc/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index ad5fd3fe8..94d55fbe9 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/markdown-remark": "^2.2.1",
- "astro": "^2.10.9",
+ "@astrojs/markdown-remark": "^3.0.0-beta.0",
+ "astro": "^3.0.0-beta.2",
"hast-util-select": "^5.0.5",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
diff --git a/examples/with-markdown-plugins/sandbox.config.json b/examples/with-markdown-plugins/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-markdown-plugins/sandbox.config.json
+++ b/examples/with-markdown-plugins/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 3487ecbe4..4a0ee2570 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9"
+ "astro": "^3.0.0-beta.2"
}
}
diff --git a/examples/with-markdown-shiki/sandbox.config.json b/examples/with-markdown-shiki/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-markdown-shiki/sandbox.config.json
+++ b/examples/with-markdown-shiki/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index 5472ac38e..efd525b5a 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^0.19.7",
- "@astrojs/preact": "^2.2.2",
- "astro": "^2.10.9",
+ "@astrojs/mdx": "^1.0.0-beta.0",
+ "@astrojs/preact": "^3.0.0-beta.1",
+ "astro": "^3.0.0-beta.2",
"preact": "^10.15.1"
}
}
diff --git a/examples/with-mdx/sandbox.config.json b/examples/with-mdx/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-mdx/sandbox.config.json
+++ b/examples/with-mdx/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index aa1d589d3..61c3e84b8 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/preact": "^2.2.2",
+ "@astrojs/preact": "^3.0.0-beta.1",
"@nanostores/preact": "^0.4.1",
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"nanostores": "^0.8.1",
"preact": "^10.15.1"
}
diff --git a/examples/with-nanostores/sandbox.config.json b/examples/with-nanostores/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-nanostores/sandbox.config.json
+++ b/examples/with-nanostores/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index e0195c8b7..64a7ce5b7 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -11,9 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/tailwind": "^4.0.0",
+ "@astrojs/mdx": "^1.0.0-beta.0",
+ "@astrojs/tailwind": "^5.0.0-beta.0",
"@types/canvas-confetti": "^1.6.0",
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"autoprefixer": "^10.4.14",
"canvas-confetti": "^1.6.0",
"postcss": "^8.4.24",
diff --git a/examples/with-tailwindcss/sandbox.config.json b/examples/with-tailwindcss/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-tailwindcss/sandbox.config.json
+++ b/examples/with-tailwindcss/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-vite-plugin-pwa/README.md b/examples/with-vite-plugin-pwa/README.md
index 9c29863db..555d3e7de 100644
--- a/examples/with-vite-plugin-pwa/README.md
+++ b/examples/with-vite-plugin-pwa/README.md
@@ -36,7 +36,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json
index cb464375d..4aa11cf87 100644
--- a/examples/with-vite-plugin-pwa/package.json
+++ b/examples/with-vite-plugin-pwa/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"vite-plugin-pwa": "0.14.7",
"workbox-window": "^6.6.0"
}
diff --git a/examples/with-vite-plugin-pwa/sandbox.config.json b/examples/with-vite-plugin-pwa/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-vite-plugin-pwa/sandbox.config.json
+++ b/examples/with-vite-plugin-pwa/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index 8e3a2443b..f97aaa86c 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^2.10.9",
+ "astro": "^3.0.0-beta.2",
"vitest": "^0.31.4"
}
}
diff --git a/examples/with-vitest/sandbox.config.json b/examples/with-vitest/sandbox.config.json
index 9178af77d..8e476b8cc 100644
--- a/examples/with-vitest/sandbox.config.json
+++ b/examples/with-vitest/sandbox.config.json
@@ -4,7 +4,7 @@
"view": "browser",
"template": "node",
"container": {
- "port": 3000,
+ "port": 4321,
"startScript": "start",
"node": "14"
}