-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.ts
More file actions
24 lines (20 loc) · 892 Bytes
/
next.config.ts
File metadata and controls
24 lines (20 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
output: "export",
trailingSlash: true,
// This block will be commented out before running bun run build and only used in development to proxy API requests to the modem's web server.
async rewrites() {
return [
{
source: "/cgi-bin/:path*",
// For local development, we proxy API requests to the modem's web server. In production, these requests will be made directly from the client to the modem, so no proxy is needed.
destination: "http://192.168.224.1/cgi-bin/:path*",
// For tailscale users, we can use the local hostname instead of the IP address to avoid issues with dynamic IPs.
// destination: "http://toothless.tail23767.ts.net/cgi-bin/:path*",
basePath: false,
},
];
},
};
export default nextConfig;