forked from revo-market/revo-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcraco.config.js
More file actions
45 lines (42 loc) · 1.4 KB
/
craco.config.js
File metadata and controls
45 lines (42 loc) · 1.4 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
const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const now = Math.floor(new Date().getTime() / 1000)
module.exports = {
style: {
postcss: {
plugins: [require("tailwindcss"), require("autoprefixer")],
},
},
webpack: {
plugins: {
add: process.env.SENTRY_AUTH_TOKEN
? [
new SentryWebpackPlugin({
// sentry-cli configuration
authToken: process.env.SENTRY_AUTH_TOKEN,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
release: `${
process.env.VERCEL_GIT_COMMIT_REF ? process.env.VERCEL_GIT_COMMIT_REF.replace(/\//g, '--') : 'unknown'
}-${process.env.VERCEL_GIT_COMMIT_SHA ? process.env.VERCEL_GIT_COMMIT_SHA : 'unknown'}`,
// webpack specific configuration
include: './build/',
ignore: ['node_modules'],
setCommits: {
repo: `${process.env.VERCEL_GIT_REPO_OWNER}/${process.env.VERCEL_GIT_REPO_SLUG}`,
commit: process.env.VERCEL_GIT_COMMIT_SHA,
},
deploy: {
env: process.env.VERCEL_ENV,
url: `https://${process.env.VERCEL_URL}`,
started: now,
},
}),
]
: [],
},
},
eslint: {
enable: false,
},
typescript: { enableTypeChecking: false },
}