Updated configs

This commit is contained in:
Ryan Freeman 2023-08-05 21:13:41 +01:00
parent 6396be019a
commit 610bb0c272
2 changed files with 0 additions and 26 deletions

View File

@ -12,31 +12,6 @@ const nextConfig = {
}, },
images: { images: {
domains: ['i.scdn.co'] 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"
}
]
}
]
} }
} }

View File

@ -3,7 +3,6 @@ import type {Config} from 'tailwindcss'
export default { export default {
content: [ content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}',
'./pages/**/*.{js,jsx,tsx}',
'./components/**/*.{js,jsx,tsx}' './components/**/*.{js,jsx,tsx}'
], ],
darkMode: 'class', darkMode: 'class',