Skip to content

Commit

Permalink
fix menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemkaDev committed May 27, 2024
1 parent 12a3081 commit c9bfab4
Show file tree
Hide file tree
Showing 7 changed files with 4,077 additions and 170 deletions.
31 changes: 18 additions & 13 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ const repo = "MainSite";
var assetPrefix = `/${repo}/`;
var basePath = `/${repo}`;
const createNextIntlPlugin = require('next-intl/plugin');

const withNextIntl = createNextIntlPlugin();

/** @type {import('next').NextConfig} */
var nextConfig = {
output: 'export',
reactStrictMode: true,
images: {
loader: 'custom',
},
}

//module.exports = withNextIntl(nextConfig);
Expand All @@ -19,17 +21,20 @@ const isGithubActions = process.env.GITHUB_ACTIONS || false
//let basePath = '/'

if (isGithubActions) {

// // trim off `<owner>/`
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '')

assetPrefix = `/${repo}/`
basePath = ``
nextConfig = {
output: 'export',
assetPrefix: assetPrefix,
basePath: basePath,
}

// // trim off `<owner>/`
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '')

assetPrefix = `/${repo}/`
basePath = ``
nextConfig = {
output: 'export',
images: {
loader: 'custom',
},
assetPrefix: assetPrefix,
basePath: basePath,
}
}

module.exports = withNextIntl(nextConfig);
Expand Down
Loading

0 comments on commit c9bfab4

Please sign in to comment.