next.config.js
Ricky/Cat Project Final/fp_fixed /next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
async rewrites() {
const origin = (
process.env.BACKEND_INTERNAL_URL ||
process.env.INTERNAL_API_URL ||
"http://127.0.0.1:5050"
).replace(/\/$/, "");
return [
{
source: "/api/uploads/:path*",
destination: `${origin}/api/uploads/:path*`,
},
{
source: "/uploads/:path*",
destination: `${origin}/uploads/:path*`,
},
];
},
};
module.exports = nextConfig;
関連記事
__init__.py
__init__.py — python source code from the Ricky learning materials (Ricky/Cat Project Final/back_web-4/app/__init__.py).
記事を読む →auth.py
auth.py — python source code from the Ricky learning materials (Ricky/Cat Project Final/back_web-4/app/admin/auth.py).
記事を読む →routes.py
routes.py — python source code from the Ricky learning materials (Ricky/Cat Project Final/back_web-4/app/admin/routes.py).
記事を読む →config.py
config.py — python source code from the Ricky learning materials (Ricky/Cat Project Final/back_web-4/app/config.py).
記事を読む →admin_ingest.py
admin_ingest.py — python source code from the Ricky learning materials (Ricky/Cat Project Final/back_web-4/app/routes/admin_ingest.py).
記事を読む →admin_stats.py
admin_stats.py — python source code from the Ricky learning materials (Ricky/Cat Project Final/back_web-4/app/routes/admin_stats.py).
記事を読む →