Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vboulaye committed Mar 3, 2024
1 parent 3dd6f5b commit a9c05c3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"js-cookie": "^3.0.5",
"memory-cache": "^0.2.0",
"postcss": "^8.4.35",
"postcss-load-config": "^4.0.1",
"postcss-load-config": "^5.0.3",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"svelte": "4.2.12",
Expand Down
42 changes: 35 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/lib/DeezerConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {env} from "$env/dynamic/public";
import {
PUBLIC_DEEZER_AUTHORIZATION_URL,PUBLIC_DEEZER_TOKEN_URL,PUBLIC_DEEZER_API_URL
} from "$env/static/public";

export const DeezerConfig = {
AUTHORIZATION_URL: env.PUBLIC_DEEZER_AUTHORIZATION_URL || "https://connect.deezer.com/oauth/auth.php",
TOKEN_URL: env.PUBLIC_DEEZER_TOKEN_URL || "https://connect.deezer.com/oauth/access_token.php",
API_URL: env.PUBLIC_DEEZER_API_URL || "https://api.deezer.com",
AUTHORIZATION_URL: PUBLIC_DEEZER_AUTHORIZATION_URL || "https://connect.deezer.com/oauth/auth.php",
TOKEN_URL: PUBLIC_DEEZER_TOKEN_URL || "https://connect.deezer.com/oauth/access_token.php",
API_URL: PUBLIC_DEEZER_API_URL || "https://api.deezer.com",
}
6 changes: 3 additions & 3 deletions src/routes/auth/signin/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import {browser} from "$app/environment";
import {page} from "$app/stores";
import {env} from "$env/dynamic/public";
import {PUBLIC_DEEZER_ID,PUBLIC_ORIGIN} from "$env/static/public";
import {RedirectCookie, TokenCookie} from "$lib/CookieManager";
import {DeezerConfig} from "$lib/DeezerConfig";
TokenCookie.remove()
const deezerAuthorizationUrl = DeezerConfig.AUTHORIZATION_URL
const deezerApplicationId = env.PUBLIC_DEEZER_ID
const redirectUrl = `${env.PUBLIC_ORIGIN}/auth/callback`;
const deezerApplicationId = PUBLIC_DEEZER_ID
const redirectUrl = `${PUBLIC_ORIGIN}/auth/callback`;
const permissions = [
"basic_access",
"email",
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter({
fallback: 'index.html' // may differ from host to host
fallback: 'fallback.html' // may differ from host to host
}),
paths: {
// assets: '/icon-socle-web2',
Expand Down

0 comments on commit a9c05c3

Please sign in to comment.