-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnext.config.ts
More file actions
46 lines (44 loc) · 1.52 KB
/
next.config.ts
File metadata and controls
46 lines (44 loc) · 1.52 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
reactStrictMode: true,
images: {
domains: ['metagame.games', 'fkarmpoupazxnshofaeg.supabase.co'],
},
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
'@': './src',
}
return config
},
distDir: 'dist',
// Redirects configuration
// the proset-poster is hardcoded into QR code in the poster version but should also lead here
async redirects() {
return [
{
source: '/proset-poster',
destination: '/proset-puzzle',
permanent: true, // This creates a 308 permanent redirect
},
{
source: '/recon', // for the RECON sponsorship QR code
destination: '/proset-puzzle',
permanent: true, // This creates a 308 permanent redirect
},
]
},
// Environment variables
env: {
PUBLIC_INTEREST_FORM_URL: process.env.PUBLIC_INTEREST_FORM_URL,
PUBLIC_TICKET_EARLY_BIRD_URL: process.env.PUBLIC_TICKET_EARLY_BIRD_URL,
PUBLIC_TICKET_REGULAR_URL: process.env.PUBLIC_TICKET_REGULAR_URL,
PUBLIC_TICKET_VOLUNTEER_URL: process.env.PUBLIC_TICKET_VOLUNTEER_URL,
PUBLIC_TICKET_SUPPORTER_URL: process.env.PUBLIC_TICKET_SUPPORTER_URL,
PUBLIC_CALL_FOR_SPEAKERS: process.env.PUBLIC_CALL_FOR_SPEAKERS,
PUBLIC_CALL_FOR_SESSIONS: process.env.PUBLIC_CALL_FOR_SESSIONS,
PUBLIC_CALL_FOR_VOLUNTEERS: process.env.PUBLIC_CALL_FOR_VOLUNTEERS,
PUBLIC_CALL_FOR_SPONSORS: process.env.PUBLIC_CALL_FOR_SPONSORS,
},
}
export default nextConfig