Skip to content

Commit

Permalink
perf: use corepack and update deps
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed May 10, 2024
1 parent aaa6b4f commit f5c492d
Show file tree
Hide file tree
Showing 7 changed files with 5,343 additions and 3,634 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@

## Getting Started

Run `yarn` to install the necessary dependencies and `yarn dev` to start the local server.
Activate corepack:

```bash
corepack enable
```

Install dependencies:

```bash
yarn install
```

Open [http://localhost:3000/](http://localhost:3000/). Pages will live-refresh when source files are changed.

> Note: remember to set your environment variables in a `.env.local` file.
## License

Site content is licensed under the [CC-BY-4.0](LICENSE), which means that you can copy, redistribute, remix, transform, and build upon the content for any purpose as long as you give appropriate credit.
Expand Down
2 changes: 0 additions & 2 deletions app/api/spotify/currently-listening/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { normalizeCurrentlyListening } from 'lib/utils/normalizers';
export async function GET() {
const response = await getCurrentlyListening();

console.log('response', response);

if (!response) {
return NextResponse.json({ error: 'Spotify not available' }, { status: 503 });
}
Expand Down
2 changes: 1 addition & 1 deletion lib/github.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { graphql } = require('@octokit/graphql');
import { graphql } from '@octokit/graphql';

const { GITHUB_TOKEN } = process.env;

Expand Down
3 changes: 0 additions & 3 deletions lib/spotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const getAccessToken = async () => {
body,
});

console.log('response2', response);

return response.json();
};

Expand All @@ -33,7 +31,6 @@ const getAccessToken = async () => {
*/
export const getCurrentlyListening = async () => {
const { access_token: accessToken } = await getAccessToken();
console.log('accessToken', accessToken);
if (!accessToken) {
return;
}
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@
"format": "biome format ./ --write"
},
"dependencies": {
"next": "^14.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"next": "^14.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "1.7.3",
"@elgorditosalsero/react-gtm-hook": "^2.7.2",
"@mdx-js/loader": "^3.0.0",
"@octokit/graphql": "^7.0.2",
"@tailwindcss/typography": "^0.5.10",
"@vercel/analytics": "^1.1.1",
"autoprefixer": "^10.4.16",
"@mdx-js/loader": "^3.0.1",
"@octokit/graphql": "^8.1.1",
"@tailwindcss/typography": "^0.5.13",
"@vercel/analytics": "^1.2.2",
"autoprefixer": "^10.4.19",
"classnames": "^2.5.1",
"gray-matter": "^4.0.3",
"gsap": "^3.12.4",
"gsap": "^3.12.5",
"next-mdx-remote": "^3.0.8",
"postcss": "^8.4.33",
"postcss": "^8.4.38",
"react-lottie-player": "^1.5.6",
"reading-time": "^1.5.0",
"rehype-prism-plus": "^1.6.3",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"remove-markdown": "^0.5.0",
"sharp": "^0.33.1",
"swr": "^2.2.4",
"sharp": "^0.33.3",
"swr": "^2.2.5",
"tailwindcss": "^3.4.1"
},
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@4.2.2",
"author": "mateonunez"
}
Loading

0 comments on commit f5c492d

Please sign in to comment.