generated from TreasureProject/web3-frontend-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix deploy workflow * move MAGICSWAPV2_API_URL to ENV * pass build arg * move arg def * test print MAGICSWAPV2_API_URL * try diff syntax * fix deploy command * try deploying without pruning dev deps * simplify healthcheck * fix isbot import * revert cachified * remove test branch
- Loading branch information
1 parent
d97f3a5
commit c4137d3
Showing
7 changed files
with
20 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/app/generated.ts | ||
app/generated.ts | ||
build/ | ||
tailwind.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
// https://fly.io/docs/reference/configuration/#services-http_checks | ||
import type { LoaderFunctionArgs } from "@remix-run/node"; | ||
|
||
export const loader = async ({ request }: LoaderFunctionArgs) => { | ||
const host = | ||
request.headers.get("X-Forwarded-Host") ?? request.headers.get("host"); | ||
|
||
try { | ||
const url = new URL("/", `http://${host}`); | ||
await fetch(url.toString(), { method: "HEAD" }).then((r) => { | ||
if (!r.ok) return Promise.reject(r); | ||
}); | ||
return new Response("OK"); | ||
} catch (error: unknown) { | ||
console.log("healthcheck ❌", { error }); | ||
return new Response("ERROR", { status: 500 }); | ||
} | ||
}; | ||
export const loader = () => new Response("OK"); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters