Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Remove Sentry and upgrade Astro (#24)
Browse files Browse the repository at this point in the history
* Remove Sentry

* Fix Layout props

* Only run check on push if changes to main are made

* I guess I also need to upgrade Astro...
  • Loading branch information
WesSouza authored Apr 15, 2024
1 parent f58fbea commit a1276c5
Show file tree
Hide file tree
Showing 21 changed files with 2,155 additions and 1,371 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Astro Check, TypeScript Check, Rome CI
on:
pull_request:
push:
branches:
- "main"

jobs:
check:
Expand Down
14 changes: 1 addition & 13 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
import react from "@astrojs/react";
import vercel from "@astrojs/vercel/serverless";
import { sentryVitePlugin } from "@sentry/vite-plugin";
import { defineConfig } from "astro/config";

const vite = process.env.VERCEL_URL
? {
build: {
sourcemap: true,
},
plugins: [
sentryVitePlugin({
org: "wes-souza",
project:
process.env.VERCEL_ENV === "production"
? "mastodon-flock"
: "mastodon-flock-preview",
include: "./.vercel/output/static",
authToken: process.env.SENTRY_AUTH_TOKEN,
release: process.env.VERCEL_URL,
}),
],
plugins: [],
}
: {};

Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@
},
"packageManager": "[email protected]",
"dependencies": {
"@astrojs/react": "^2.2.1",
"@astrojs/vercel": "^3.8.0",
"@astrojs/react": "^3.3.0",
"@astrojs/vercel": "^7.5.3",
"@nanostores/react": "^0.6.0",
"@sentry/browser": "^7.62.0",
"@sentry/integrations": "^7.62.0",
"astro": "^2.10.4",
"astro": "^4.6.1",
"cookie": "^0.5.0",
"date-fns": "^2.30.0",
"focus-trap-react": "^10.2.1",
Expand All @@ -45,7 +43,7 @@
"twitter-api-v2": "^1.15.1"
},
"devDependencies": {
"@sentry/vite-plugin": "^2.6.1",
"@astrojs/check": "^0.5.10",
"@types/cookie": "^0.5.1",
"@types/node": "^20.4.9",
"@types/react": "^18.2.20",
Expand All @@ -71,4 +69,4 @@
"style": "wes"
}
}
}
}
Loading

0 comments on commit a1276c5

Please sign in to comment.