summaryrefslogtreecommitdiff
path: root/packages/integrations/web-vitals
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/web-vitals')
-rw-r--r--packages/integrations/web-vitals/CHANGELOG.md22
-rw-r--r--packages/integrations/web-vitals/package.json4
-rw-r--r--packages/integrations/web-vitals/src/index.ts8
-rw-r--r--packages/integrations/web-vitals/test/fixtures/basics/astro.config.mjs2
4 files changed, 25 insertions, 11 deletions
diff --git a/packages/integrations/web-vitals/CHANGELOG.md b/packages/integrations/web-vitals/CHANGELOG.md
index 8e350c74e..dede426c6 100644
--- a/packages/integrations/web-vitals/CHANGELOG.md
+++ b/packages/integrations/web-vitals/CHANGELOG.md
@@ -1,5 +1,27 @@
# @astrojs/web-vitals
+## 3.0.0-beta.1
+
+### Major Changes
+
+- [#12008](https://github.com/withastro/astro/pull/12008) [`5608338`](https://github.com/withastro/astro/commit/560833843c6d3ce2b6c6c473ec4ae70e744bf255) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.
+
+ Starting from this release, no breaking changes will be introduced unless absolutely necessary.
+
+ To learn how to upgrade, check out the [Astro v5.0 upgrade guide in our beta docs site](https://5-0-0-beta.docs.astro.build/en/guides/upgrade-to/v5/).
+
+### Patch Changes
+
+- Updated dependencies [[`5608338`](https://github.com/withastro/astro/commit/560833843c6d3ce2b6c6c473ec4ae70e744bf255)]:
+ - @astrojs/db@0.14.0-beta.1
+
+## 2.0.1-alpha.0
+
+### Patch Changes
+
+- Updated dependencies [[`b677429`](https://github.com/withastro/astro/commit/b67742961a384c10e5cd04cf5b02d0f014ea7362)]:
+ - @astrojs/db@0.13.2-alpha.0
+
## 3.0.0
### Patch Changes
diff --git a/packages/integrations/web-vitals/package.json b/packages/integrations/web-vitals/package.json
index 486ab8d39..13ceeb5e6 100644
--- a/packages/integrations/web-vitals/package.json
+++ b/packages/integrations/web-vitals/package.json
@@ -1,7 +1,7 @@
{
"name": "@astrojs/web-vitals",
"description": "Track your website’s performance with Astro DB",
- "version": "3.0.0",
+ "version": "3.0.0-beta.1",
"type": "module",
"author": "withastro",
"license": "MIT",
@@ -35,7 +35,7 @@
"web-vitals": "^4.2.4"
},
"peerDependencies": {
- "@astrojs/db": "^0.14.0"
+ "@astrojs/db": "^0.14.0-beta.1"
},
"devDependencies": {
"@astrojs/db": "workspace:*",
diff --git a/packages/integrations/web-vitals/src/index.ts b/packages/integrations/web-vitals/src/index.ts
index 02293ac6f..c74ab3261 100644
--- a/packages/integrations/web-vitals/src/index.ts
+++ b/packages/integrations/web-vitals/src/index.ts
@@ -19,14 +19,6 @@ export default function webVitals({ deprecated }: { deprecated?: boolean } = {})
);
}
- if (config.output !== 'hybrid' && config.output !== 'server') {
- throw new AstroError(
- 'No SSR adapter found.',
- '`@astrojs/web-vitals` requires your site to be built with `hybrid` or `server` output.\n' +
- 'Please add an SSR adapter: https://docs.astro.build/en/guides/server-side-rendering/',
- );
- }
-
// Middleware that adds a `<meta>` tag to each page.
addMiddleware({ entrypoint: '@astrojs/web-vitals/middleware', order: 'post' });
// Endpoint that collects metrics and inserts them in Astro DB.
diff --git a/packages/integrations/web-vitals/test/fixtures/basics/astro.config.mjs b/packages/integrations/web-vitals/test/fixtures/basics/astro.config.mjs
index 42bfa6f66..4dae98ae0 100644
--- a/packages/integrations/web-vitals/test/fixtures/basics/astro.config.mjs
+++ b/packages/integrations/web-vitals/test/fixtures/basics/astro.config.mjs
@@ -6,7 +6,7 @@ import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
integrations: [db(), webVitals()],
- output: 'hybrid',
+ output: 'static',
adapter: node({ mode: 'standalone' }),
devToolbar: {
enabled: false,