Skip to content

Commit 57e7425

Browse files
author
Programming-Sai
committed
---
1 parent 205d2e6 commit 57e7425

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const BASE_PATH = "/Blog";
2+
export default BASE_PATH;

next.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// Import the base path from the basePath.js file
2+
import BASE_PATH from "./basePath"; // Adjust the path if necessary
3+
14
/** @type {import('next').NextConfig} */
25
const nextConfig = {
36
compress: true,
47
output: "export",
5-
basePath: "/Blog",
6-
assetPrefix: "/Blog/",
8+
basePath: BASE_PATH, // Use the imported base path
9+
// assetPrefix: `${BASE_PATH}/`,
710
};
811

9-
module.exports = nextConfig;
12+
export default nextConfig;

0 commit comments

Comments
 (0)