Capital/next.config.ts

32 lines
606 B
TypeScript
Raw Normal View History

2025-01-02 22:40:56 +08:00
import type { NextConfig } from 'next'
2025-01-01 20:10:22 +08:00
const nextConfig: NextConfig = {
/* config options here */
reactStrictMode: true,
2025-01-04 13:54:39 +08:00
generateBuildId: async () => {
return process.env.GIT_HASH ?? 'development'
},
2025-01-02 22:40:56 +08:00
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'raw.sn.solsynth.dev',
},
{
protocol: 'https',
hostname: 'api.sn.solsynth.dev',
},
],
2025-01-02 22:40:56 +08:00
},
2025-01-04 18:24:23 +08:00
async rewrites() {
return [
{
source: '/.well-known/:path*',
destination: '/api/well-known/:path*',
},
]
},
2025-01-02 22:40:56 +08:00
}
2025-01-01 20:10:22 +08:00
2025-01-02 22:40:56 +08:00
export default nextConfig