forked from UKSOURCE/ipv6
feat: configure basePath from env and update font strategy
This commit is contained in:
+4
-2
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user