feat: configure basePath from env and update font strategy

This commit is contained in:
2026-05-16 10:02:11 +07:00
parent 1a13083fc5
commit e652279b41
7 changed files with 74 additions and 21 deletions
+4 -2
View File
@@ -1,15 +1,17 @@
import type { NextConfig } from "next";
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
const nextConfig: NextConfig = {
/* config options here */
basePath: '/ipv6',
basePath,
trailingSlash: true,
output: "standalone",
async redirects() {
return [
{
source: "/",
destination: "/ipv6",
destination: basePath || "/",
basePath: false,
permanent: false,
},