Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
YeahNotSewerSide authored May 26, 2024
1 parent e73c3a3 commit a6eee97
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@ const nextConfig = {

module.exports = withNextIntl(nextConfig);

// const isGithubActions = process.env.GITHUB_ACTIONS || false
const isGithubActions = process.env.GITHUB_ACTIONS || false

// let assetPrefix = ''
// let basePath = '/'
let assetPrefix = ''
let basePath = '/'

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

// assetPrefix = `/${repo}/`
// basePath = `/${repo}`

// module.exports = {
// output: 'export',
// assetPrefix: assetPrefix,
// basePath: basePath,
// }
// }
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '')

assetPrefix = `/${repo}/`
basePath = `/${repo}`
module.exports = {
output: 'export',
assetPrefix: assetPrefix,
basePath: basePath,
}
}

// module.exports = nextConfig

0 comments on commit a6eee97

Please sign in to comment.