-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
30 lines (29 loc) · 754 Bytes
/
next.config.js
File metadata and controls
30 lines (29 loc) · 754 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
const withCSS = require('@zeit/next-css')
const path = require('path')
require('dotenv').config()
module.exports = withCSS({
webpack(config, options) {
config.module.rules.push({
test: /\.[tj]sx?$/,
use: [
{
loader: 'linaria/loader',
options: {
sourceMap: process.env.NODE_ENV !== 'production',
},
},
],
})
config.resolve.alias = {
...config.resolve.alias,
"@components": path.resolve(__dirname, "src/components"),
"@pages": path.resolve(__dirname, "src/pages"),
"@utils": path.resolve(__dirname, "src/utils")
}
return config
},
env: {
ALGOLIA_APP: process.env.ALGOLIA_APP,
ALGOLIA_KEY: process.env.ALGOLIA_KEY
},
})