···1-import { isObj, type Prettify } from "../../../utils";
23export type AuthToken = {
4 access_token: string;
···1+import { isObj, type Prettify } from "/utils";
23export type AuthToken = {
4 access_token: string;
+1-1
src/pages/_callback.astro
···1---
2import { SPOTIFY_CLIENT_ID, SPOTIFY_REDIRECT_URI } from "astro:env/server";
3-import { getAccessCode } from "/components/playing/spotify";
4// make a 404 if accidentally left in prod
5if (import.meta.env.PROD) return Astro.redirect("/404", 404);
6
···1---
2import { SPOTIFY_CLIENT_ID, SPOTIFY_REDIRECT_URI } from "astro:env/server";
3+import { getAccessCode } from "/components/home/playing/spotify";
4// make a 404 if accidentally left in prod
5if (import.meta.env.PROD) return Astro.redirect("/404", 404);
6
+1-1
src/pages/index.astro
···1---
2import Base from "/components/Base.astro";
3import Landing from "/components/home/Landing.astro";
4-import NowPlaying from "/components/playing/NowPlaying.astro";
5---
67<Base>
···1---
2import Base from "/components/Base.astro";
3import Landing from "/components/home/Landing.astro";
4+import NowPlaying from "/components/home/playing/NowPlaying.astro";
5---
67<Base>
+1-1
src/pages/now-playing-sse.ts
···2 spotifyNowPlaying,
3 SpotifyError,
4 type nowPlaying,
5-} from "/components/playing/spotify";
67export async function GET() {
8 const update = async (): Promise<string> => {
···2 spotifyNowPlaying,
3 SpotifyError,
4 type nowPlaying,
5+} from "/components/home/playing/spotify";
67export async function GET() {
8 const update = async (): Promise<string> => {