forked from garageScript/c0d3-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
32 lines (31 loc) · 1.18 KB
/
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
const slug = require('remark-slug')
const toc = require('remark-toc')
const gfm = require('remark-gfm')
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [slug, toc, gfm]
}
})
module.exports = withMDX({
pageExtensions: ['tsx', 'js', 'jsx', 'mdx', 'ts'],
env: {
CHAT_URL: process.env.CHAT_URL || 'https://mattermost.devwong.com/api/v4',
CLIENT_URL: process.env.CLIENT_URL || 'https://c0d3.devwong.com',
DB_NAME: process.env.DB_NAME || 'c0d3dev6',
DB_USER: process.env.DB_USER || 'c0d3db',
DB_PW: process.env.DB_PW || 'letmein2',
DB_PORT: process.env.DB_PORT || '5432',
DB_HOST: process.env.DB_HOST || 'freedomains.dev',
MAILGUN_API_KEY: process.env.MAILGUN_API_KEY,
MAILGUN_DOMAIN: process.env.MAILGUN_DOMAIN,
MATTERMOST_ACCESS_TOKEN:
process.env.MATTERMOST_ACCESS_TOKEN || 'nzk11f9s6jfpbpim8xpbdb9nea',
SENTRY_DSN:
process.env.SENTRY_DSN ||
'https://e95626afb0454145b569bc69116f838c@o385150.ingest.sentry.io/5221680',
POSTHOG_API_KEY: process.env.POSTHOG_API_KEY,
SESSION_SECRET: process.env.SESSION_SECRET || 'c0d3hard3r',
SERVER_URL: process.env.SERVER_URL || '/api/graphql'
}
})