Compare commits

...

9 Commits

Author SHA1 Message Date
dependabot[bot]
f3f673b4e6
Merge d1166c44110df403a53132cd7d67f521b913c139 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]
d1166c4411
build(deps): bump cross-spawn from 7.0.3 to 7.0.6
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-24 00:03:41 +00:00
dvelo
cbdcc74ce8
chore: move dev branch commits -> main
chore: move dev branch commits -> main
2024-11-23 18:01:43 -06:00
3 changed files with 32 additions and 27 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)
## 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)
Set the following variables in the .env.local file:
```dotenv

@ -31,15 +31,15 @@ import { NextApiRequest, NextApiResponse } from "next";
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
res: NextApiResponse,
) {
const betterStackResult = await fetch(
`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(
`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();
@ -50,8 +50,9 @@ export default async function handler(
c.attributes.ends_at === null &&
c.attributes.affected_resources.filter(
(v: any) =>
v.status_page_resource_id === process.env.BS_STATUS_MAIN_WEBSITE
).length > 0
v.status_page_resource_id === process.env.BS_STATUS_MAIN_WEBSITE &&
v.status !== "resolved",
).length > 0,
);
res.status(200).send({

@ -3234,9 +3234,9 @@ cross-fetch@^4.0.0:
node-fetch "^2.6.12"
cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
version "7.0.6"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
dependencies:
path-key "^3.1.0"
shebang-command "^2.0.0"