forked from UKSOURCE/ipv6
49 lines
942 B
TypeScript
49 lines
942 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
basePath,
|
|
trailingSlash: true,
|
|
output: "standalone",
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/",
|
|
destination: basePath || "/",
|
|
basePath: false,
|
|
permanent: false,
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'storage.googleapis.com',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "localhost",
|
|
port: "3001",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "127.0.0.1",
|
|
port: "3001",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "lh3.googleusercontent.com",
|
|
pathname: "/**",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|