Init project. Create simple backend. Add postgres in docker

This commit is contained in:
2025-03-16 11:24:14 +04:00
commit bcc5d1daf4
44 changed files with 18464 additions and 0 deletions

23
frontend/next.config.ts Normal file
View File

@@ -0,0 +1,23 @@
const nextConfig = {
async rewrites() {
return [
{
source: "/api/:path*",
destination:
`${process.env.BACKEND_PROTOCOL}://` +
`${process.env.BACKEND_DOMAIN}:${process.env.BACKEND_PORT}/:path*`,
},
];
},
images: {
remotePatterns: [
{
protocol: process.env.BASE_PROTOCOL,
hostname: process.env.BASE_DOMAIN,
port: process.env.BASE_PORT,
},
],
},
};
export default nextConfig;