-
Notifications
You must be signed in to change notification settings - Fork 0
Granular caching #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d74cb94
v1
ruarim 6992d5e
deploy dev env
ruarim 2bc1c08
refactor
ruarim b78ec51
add retry button
ruarim 95db37f
update workflow
ruarim 30f5fc6
fix the deploy workflow
ruarim e449ebe
swap to DOMAIN and set correct url on dev branch
ruarim 8408c18
ensure no duplicate related tracks
ruarim 5b6edcb
better naming
ruarim 3e389cf
simplify code
ruarim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 +1,5 @@ | ||
| SPOTIFY_CLIENT_ID= | ||
| SPOTIFY_CLIENT_SECRET= | ||
| REDIRECT_URI= | ||
| DOMAIN= | ||
| GOOGLE_GENERATIVE_AI_API_KEY= | ||
| REDIS_URL= |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 +1,22 @@ | ||
| import path from "node:path"; | ||
| import { AnalysisData } from "./types"; | ||
|
|
||
| export const PORT = process.env.PORT ?? 8080; | ||
| export const SPOTIFY_CLIENT_ID = process.env.SPOTIFY_CLIENT_ID as string; | ||
| export const SPOTIFY_CLIENT_SECRET = process.env.SPOTIFY_CLIENT_SECRET as string; | ||
| export const REDIRECT_URI = process.env.REDIRECT_URI as string; | ||
| export const DOMAIN = process.env.DOMAIN as string; | ||
| export const REDIRECT_URI = `https://${DOMAIN}/callback`; | ||
| export const JWT_SECRET = process.env.JWT_SECRET as string; | ||
| export const UI_PATH = path.join(process.cwd(), 'dist', 'ui'); | ||
|
|
||
| export const cookieName = 'auth_token' | ||
| export const cookieName = 'auth_token' | ||
|
|
||
| export const defaultAnalysis: AnalysisData = { | ||
| trackAnalysis: undefined, | ||
| albumAnalysis: undefined, | ||
| personnelAndPlaces: undefined, | ||
| artistBiography: undefined, | ||
| culturalContext: undefined, | ||
| recommendations: undefined, | ||
| tags: [], | ||
| } | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.