Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Feb 3, 2024
1 parent 56faf57 commit 3ca518f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dev:server": "vite",
"dev": "run-p dev:*",
"prepare": "husky install",
"fetch-youtube-playlists": "node --env-file .env scripts/fetch-youtube-data.mjs"
"fetch-youtube-playlists": "vite-node scripts/fetch-youtube-data.mjs"
},
"browserslist": {
"production": [
Expand Down
3 changes: 2 additions & 1 deletion scripts/fetch-youtube-data/fetch-youtube.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/// <reference types="vite/client" />

import { URLSearchParams } from "url";
import dotEnvRaw from "../../.env?raw";
import { parseDotEnv } from "../utils/dotEnv";
import { readFile } from "fs/promises";

const dotEnvRaw = await readFile("./.env", "utf-8");
const dotEnv = parseDotEnv(dotEnvRaw);

const key = dotEnv.YOUTUBE_API_KEY;
Expand Down

0 comments on commit 3ca518f

Please sign in to comment.