web/next.config.tsblame
View source
3e3af551import type { NextConfig } from "next";
3e3af552
f0bb1923const GROVE_HUB_API_URL = process.env.GROVE_HUB_API_URL ?? "http://localhost:4001";
f0bb1924const GROVE_API_URL = process.env.GROVE_API_URL ?? "http://localhost:4000";
3e3af555const nextConfig: NextConfig = {
135dfe56 output: "standalone",
9f470a77 allowedDevOrigins: ["grove.test", "collab.grove.test", "canopy.grove.test", "ring.grove.test"],
3e3af558 async rewrites() {
3e3af559 return [
3c994d310 {
f0bb19211 source: "/api/auth/:path*",
f0bb19212 destination: `${GROVE_HUB_API_URL}/api/auth/:path*`,
f0bb19213 },
f0bb19214 {
f0bb19215 source: "/api/instances/:path*",
f0bb19216 destination: `${GROVE_HUB_API_URL}/api/instances/:path*`,
f0bb19217 },
4dfd09b18 {
4dfd09b19 source: "/api/instances",
4dfd09b20 destination: `${GROVE_HUB_API_URL}/api/instances`,
4dfd09b21 },
79efd4122 {
79efd4123 source: "/api/orgs/:path*",
79efd4124 destination: `${GROVE_HUB_API_URL}/api/orgs/:path*`,
79efd4125 },
79efd4126 {
79efd4127 source: "/api/orgs",
79efd4128 destination: `${GROVE_HUB_API_URL}/api/orgs`,
79efd4129 },
1da987430 {
1da987431 source: "/api/canopy/:path*",
1da987432 destination: `${GROVE_API_URL}/api/canopy/:path*`,
1da987433 },
d9e329534 {
d9e329535 source: "/api/ring/:path*",
d9e329536 destination: `${GROVE_API_URL}/api/ring/:path*`,
d9e329537 },
f0bb19238 {
f0bb19239 source: "/api/repos/:path*",
f0bb19240 destination: `${GROVE_API_URL}/api/repos/:path*`,
3c994d341 },
85f749742 {
85f749743 source: "/api/pages/:path*",
85f749744 destination: `${GROVE_API_URL}/api/pages/:path*`,
85f749745 },
3e3af5546 ];
3e3af5547 },
3e3af5548};
3e3af5549
3e3af5550export default nextConfig;