-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
48 lines (36 loc) · 957 Bytes
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
./next.config.js
Copyright (C) 2022, Anokidev. This file is
part of Anokidev's website. Anokidev's website
is open-source and is licensed in MIT License.
This file is used as the next.js conf file.
*/
/** @type {import('next').NextConfig} */
// For SCSS.
const path = require('path')
// Config.
const nextConfig = {
// Strict mode is active.
reactStrictMode: true,
// Insert global variables.
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
prependData: `
$text-shadow: 0 0 10px #fff, 0 0 11px #fff, 0 0 15px #535353, 0 0 20px #535353, 0 0 20px #535353, 0 0 20px #535353, 0 0 20px #535353;
$light-color: #3d3d3d;
$dark-color: rgb(24, 24, 24);
$hover-color: #767575;
`,
},
// Redirect to home page.
async redirects() {
return [
{
source: '/',
destination: '/home',
permanent: false,
},
]
}
}
module.exports = nextConfig