20 lines
397 B
TypeScript
20 lines
397 B
TypeScript
import type { NextConfig } from 'next'
|
|
import path from 'path'
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
sassOptions: {
|
|
includePaths: [path.join(__dirname, './src/styles')],
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|