Add game cards and dev reverse proxy

This commit is contained in:
2024-05-11 13:50:52 +04:00
parent 4f8301d1e8
commit a2ea5fc409
13 changed files with 202 additions and 12 deletions

View File

@@ -1,4 +1,24 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
async rewrites() {
return process.env.NODE_ENV == "development"
? [
{
source: "/api/:path*",
destination: "http://127.0.0.1:8000/:path*",
},
]
: [];
},
images: {
remotePatterns: [
{
protocol: "http",
hostname: "127.0.0.1",
port: "8000",
},
],
},
};
export default nextConfig;