-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
33 lines (29 loc) · 1.17 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/** @type {import('next').NextConfig} */
const isGithubActions = process.env.GITHUB_ACTIONS || false
let assetPrefix = ''
let basePath = ''
if (isGithubActions) {
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '')
assetPrefix = `/${repo}`
basePath = `/${repo}`
}
const nextConfig = {
reactStrictMode: true,
trailingSlash: true,
assetPrefix: assetPrefix,
basePath: basePath,
images: {
unoptimized: true,
},
publicRuntimeConfig: {
REGISTRATION_URL: 'https://www.humanbrainmapping.org/i4a/ams/meetings/index.cfm?controller=meetings&action=startRegistration&conferenceID=146®init=1&pageID=4217',
PROJECTS_SUBMISSION_URL: 'https://github.com/ohbm/hackathon2023/issues/new?labels=Hackathon+Project&projects=&template=hackathon-project-form.yml&title=%3CMy+Project+Name%3E',
DISCORD_URL: 'https://discord.gg/ohbmbrainhack2023',
TWITTER_URL: 'https://twitter.com/ohbmopen',
MATTERMOST_URL: 'https://mattermost.brainhack.org/brainhack/channels/hbm-hackathon',
GITHUB_URL: 'https://github.com/ohbm/',
MAPS_URL: 'https://goo.gl/maps/7txMm7UuJ8nKPraC8',
OSSIG_URL: 'https://ossig.netlify.app/',
},
}
module.exports = nextConfig