Skip to content

Commit

Permalink
chore: you're welcome
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Jan 15, 2025
1 parent 6080af6 commit 2c1014c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ stats.*
/blob-report/
/playwright/.cache/
.cache-synpress

# ENV
output_api.env
output.env
output.log
15 changes: 4 additions & 11 deletions api/available-routes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { VercelResponse } from "@vercel/node";
import { object, Infer, optional, string } from "superstruct";
import dotenv from "dotenv";
import {
validAddress,
positiveIntStr,
} from "./_utils";
import { validAddress, positiveIntStr } from "./_utils";
import { TypedVercelRequest } from "./_types";

const AvailableRoutesQueryParamsSchema = object({
Expand All @@ -17,20 +14,16 @@ const AvailableRoutesQueryParamsSchema = object({
});

dotenv.config({
path: "../src/output_api.env",
path: "./output_api.env",
});

type AvailableRoutesQueryParams = Infer<
typeof AvailableRoutesQueryParamsSchema
>;

const handler = async (
_:any,
response: VercelResponse

) => {
const handler = async (_: any, response: VercelResponse) => {
response.status(200).json({
test: process.env.GIT_ENV_EXPORTED
test: process.env.GIT_ENV_EXPORTED,
});
return;
};
Expand Down
4 changes: 2 additions & 2 deletions scripts/pre-build-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

for file in "${files[@]}"; do
echo "Downloading $file..."
curl -H "Authorization: token ${GH_TOKEN}" -L "${BASE_URL}${file}" -o "src/$file"
cat src/${file}
curl -H "Authorization: token ${GH_TOKEN}" -L "${BASE_URL}${file}" -o "./${file}"
cat ./${file}
done
echo "All files downloaded."

Expand Down
Empty file modified scripts/pre-build.ts
100644 → 100755
Empty file.

0 comments on commit 2c1014c

Please sign in to comment.