mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-21 19:35:41 +00:00
Updated configs
This commit is contained in:
parent
6396be019a
commit
610bb0c272
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user