Compare commits

...

8 Commits

Author SHA1 Message Date
dependabot[bot]
76ee70400d
Merge 0ec55b125eb5a859a1d5a95eec302e17b4ef03d4 into fd278b3e8d0cc391cb3b45bfd02b25e58a1680ae 2025-02-07 15:33:38 -06:00
dvelo
fd278b3e8d
chore: update contributing guide
Update CONTRIBUTING.md
2025-02-07 15:33:13 -06:00
dvelo
b3d2763106
Update CONTRIBUTING.md 2025-02-07 15:28:27 -06:00
dvelo
8538ac5672
Update CONTRIBUTING.md 2025-02-07 15:27:15 -06:00
dvelo
45fcc618c2
fix: status is broken
fix: status is broken
2025-02-06 19:16:52 -06:00
dvelo
7e7c1a8648 Merge branch 'dev' of https://github.com/DeveloLongScript/MHSF into dev 2025-02-06 18:34:01 -06:00
dvelo
17f444fbf4 fix: status is broken 2025-02-06 18:33:59 -06:00
dependabot[bot]
0ec55b125e
build(deps): bump tailwind-merge from 2.3.0 to 3.0.1
Bumps [tailwind-merge](https://github.com/dcastil/tailwind-merge) from 2.3.0 to 3.0.1.
- [Release notes](https://github.com/dcastil/tailwind-merge/releases)
- [Commits](https://github.com/dcastil/tailwind-merge/compare/v2.3.0...v3.0.1)

---
updated-dependencies:
- dependency-name: tailwind-merge
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 02:24:07 +00:00
4 changed files with 35 additions and 32 deletions

@ -28,6 +28,10 @@ The primary stack for MHSF is Next.js, a React framework, which you can start by
[You can also opt out of telemetry if you'd like.](https://nextjs.org/telemetry) [You can also opt out of telemetry if you'd like.](https://nextjs.org/telemetry)
## Clerk ## Clerk
> [!CAUTION]
> Clerk is no longer optional. If Clerk is not setup, you *will* get a `Non-authenticated environments are disallowed on this origin.` error on the frontend.
> You may be able to modify/test API endpoints as long as they do not require accounts.
If you want to test out accounts, [you must create an Clerk key from their website.](https://clerk.com) If you want to test out accounts, [you must create an Clerk key from their website.](https://clerk.com)
Set the following variables in the .env.local file: Set the following variables in the .env.local file:
```dotenv ```dotenv

@ -66,7 +66,7 @@
"remark-gfm": "^4.0.0", "remark-gfm": "^4.0.0",
"sonner": "^1.7.0", "sonner": "^1.7.0",
"stripe-gradient": "^1.0.1", "stripe-gradient": "^1.0.1",
"tailwind-merge": "^2.3.0", "tailwind-merge": "^3.0.1",
"tailwindcss-animate": "^1.0.7", "tailwindcss-animate": "^1.0.7",
"tailwindcss-patch": "^4.0.0", "tailwindcss-patch": "^4.0.0",
"turbo": "^2.4.0", "turbo": "^2.4.0",

@ -31,15 +31,15 @@ import { NextApiRequest, NextApiResponse } from "next";
export default async function handler( export default async function handler(
req: NextApiRequest, req: NextApiRequest,
res: NextApiResponse res: NextApiResponse,
) { ) {
const betterStackResult = await fetch( const betterStackResult = await fetch(
`https://uptime.betterstack.com/api/v2/status-pages/${process.env.BS_STATUS_PAGE}/status-reports`, `https://uptime.betterstack.com/api/v2/status-pages/${process.env.BS_STATUS_PAGE}/status-reports`,
{ headers: { Authorization: `Bearer ${process.env.BS_TOKEN}` } } { headers: { Authorization: `Bearer ${process.env.BS_TOKEN}` } },
); );
const betterStackURL = await fetch( const betterStackURL = await fetch(
`https://uptime.betterstack.com/api/v2/status-pages/${process.env.BS_STATUS_PAGE}`, `https://uptime.betterstack.com/api/v2/status-pages/${process.env.BS_STATUS_PAGE}`,
{ headers: { Authorization: `Bearer ${process.env.BS_TOKEN}` } } { headers: { Authorization: `Bearer ${process.env.BS_TOKEN}` } },
); );
const result = await betterStackResult.json(); const result = await betterStackResult.json();
@ -50,8 +50,9 @@ export default async function handler(
c.attributes.ends_at === null && c.attributes.ends_at === null &&
c.attributes.affected_resources.filter( c.attributes.affected_resources.filter(
(v: any) => (v: any) =>
v.status_page_resource_id === process.env.BS_STATUS_MAIN_WEBSITE v.status_page_resource_id === process.env.BS_STATUS_MAIN_WEBSITE &&
).length > 0 v.status !== "resolved",
).length > 0,
); );
res.status(200).send({ res.status(200).send({

@ -102,7 +102,7 @@
resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz" resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz"
integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw== integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==
"@babel/runtime@^7.13.10", "@babel/runtime@^7.23.2", "@babel/runtime@^7.24.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7": "@babel/runtime@^7.13.10", "@babel/runtime@^7.23.2", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":
version "7.24.8" version "7.24.8"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e"
integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA== integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==
@ -7827,12 +7827,10 @@ synckit@^0.9.1:
"@pkgr/core" "^0.1.0" "@pkgr/core" "^0.1.0"
tslib "^2.6.2" tslib "^2.6.2"
tailwind-merge@^2.3.0: tailwind-merge@^3.0.1:
version "2.3.0" version "3.0.1"
resolved "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.3.0.tgz" resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-3.0.1.tgz#0f0189966511ebcd63ef98d9eaf5607beb0d59d3"
integrity sha512-vkYrLpIP+lgR0tQCG6AP7zZXCTLc1Lnv/CCRT3BqJ9CZ3ui2++GPaGb1x/ILsINIMSYqqvrpqjUFsMNLlW99EA== integrity sha512-AvzE8FmSoXC7nC+oU5GlQJbip2UO7tmOhOfQyOmPhrStOGXHU08j8mZEHZ4BmCqY5dWTCo4ClWkNyRNx1wpT0g==
dependencies:
"@babel/runtime" "^7.24.1"
tailwindcss-animate@^1.0.7: tailwindcss-animate@^1.0.7:
version "1.0.7" version "1.0.7"