From 610bb0c2723a19d1640894195579d6662c919a88 Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Sat, 5 Aug 2023 21:13:41 +0100 Subject: [PATCH] Updated configs --- next.config.mjs | 25 ------------------------- tailwind.config.ts | 1 - 2 files changed, 26 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index d3e40e0..8d425a8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -12,31 +12,6 @@ const nextConfig = { }, images: { domains: ['i.scdn.co'] - }, - async rewrites() { - if (process.env.NODE_ENV === 'production') { - return [ - { - source: '/api/:path', - destination: 'https://ryanfreeman.dev/:path/', - } - ] - } else { - return [] - } - }, - async headers() { - return [ - { - source: '/api/spotify/currently-playing', - headers: [ - { - key: "Cache-Control", - value: "s-maxage=1, stale-while-revalidate=59" - } - ] - } - ] } } diff --git a/tailwind.config.ts b/tailwind.config.ts index db0d714..650743b 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -3,7 +3,6 @@ import type {Config} from 'tailwindcss' export default { content: [ './app/**/*.{js,ts,jsx,tsx,mdx}', - './pages/**/*.{js,jsx,tsx}', './components/**/*.{js,jsx,tsx}' ], darkMode: 'class',