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