import { defineConfig } from 'vite'; export default defineConfig({ server: { // Explicit 127.0.0.1, not the default 'localhost' — Vite's default // can resolve to IPv6 loopback only ([::1]) depending on the host's // resolver order, which won't match Spotify's registered redirect // URI (127.0.0.1 specifically — Spotify's HTTPS-required-for- // non-loopback policy only exempts the literal IP, not 'localhost'). host: '127.0.0.1', proxy: { '/api': 'http://127.0.0.1:3010', }, }, });