akiyama.mizuki.guru/apps/frontend/next.config.ts
imnyang c6fa45bbc0
refactor: update Elysia initialization with API prefix and fix API destination in Next.js config
feat: add targetId for Pixiv and Twitter uploads in post routes
style: adjust filter container margin and button styles for improved layout
2026-04-16 23:36:02 +09:00

16 lines
313 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.API_BASE_URL}/api/:path*`,
},
];
},
};
export default nextConfig;