-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f7346a
commit 655a867
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
output: 'export', | ||
// Set the basePath to your repository name if it's not the root domain | ||
basePath: '/nextjs-boilerplate', // Replace 'your-repo-name' with the actual name of your GitHub repository | ||
|
||
// Set the assetPrefix to serve assets correctly | ||
assetPrefix: '/nextjs-boilerplate/', // Ensure this matches your basePath | ||
|
||
// Enable trailing slash to ensure paths work correctly | ||
trailingSlash: true, | ||
|
||
// Optional: other Next.js configurations can go here | ||
}; | ||
|
||
export default nextConfig; |