Skip to content

Commit 38ffd49

Browse files
committed
chore: add assetPrefix and basePath configuration to next.config.ts
1 parent f16fe31 commit 38ffd49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎next.config.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import type { NextConfig } from "next";
22

3+
const urlPrefix = process.env.URL_PREFIX ? '/' + process.env.URL_PREFIX : ''
4+
35
const nextConfig: NextConfig = {
46
output: "export",
7+
assetPrefix: urlPrefix,
8+
basePath: urlPrefix,
9+
trailingSlash: true,
510
images: {
611
unoptimized: true,
712
},

0 commit comments

Comments
 (0)