-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (30 loc) · 844 Bytes
/
next.config.js
File metadata and controls
32 lines (30 loc) · 844 Bytes
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
/** @type {import('next').NextConfig} */
const removeImports = require('next-remove-imports')({})
const { DEMO_PROFILE_ID } = require('./lib/config')
const { DEMO_PUBLICATION_ID } = require('./lib/config')
module.exports = removeImports({
reactStrictMode: true,
experimental: {
scrollRestoration: true
},
// redirect on empty string, do on page side then
async redirects() {
return [
{
source: '/profile',
destination: '/profile/'.concat(DEMO_PROFILE_ID.toHexString()),
permanent: true,
},
{
source: '/timeline',
destination: '/timeline/'.concat(DEMO_PROFILE_ID.toHexString()),
permanent: true,
},
{
source: '/publication',
destination: '/publication/'.concat(DEMO_PUBLICATION_ID),
permanent: true,
},
]
},
})