feat: serve media on /media/, not separate domain

This commit is contained in:
Sam 2022-12-22 15:42:43 +01:00
parent 7b7b0ca15b
commit d3eaaaaa9d
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
5 changed files with 109 additions and 11 deletions

View file

@ -8,8 +8,12 @@ const nextConfig = {
return [
{
source: "/api/:path*",
destination: "http://localhost:8080/:path*", // Proxy to Backend
destination: "http://localhost:8080/:path*", // proxy to backend
},
{
source: "/media/:path*",
destination: "http://localhost:9000/pronouns.cc/:path*", // proxy to media server
}
];
},
sentry: {