Skip to content

Commit

Permalink
update next config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivamani-18 committed Jul 29, 2024
1 parent 9f7346a commit 655a867
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
uses: Sivamani-18/github-pages-action@v1.0.1
with:
github_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: '.next'
publish_dir: './out'
user_name: 'Sivamani-18'
user_email: 'siva@mindwaveventures.com'
14 changes: 13 additions & 1 deletion next.config.mjs
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;

0 comments on commit 655a867

Please sign in to comment.