add mongo
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
const envVar = require('env-var')
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
swcMinify: true
|
||||
swcMinify: true,
|
||||
/** @type {import('next/config').ServerRuntimeConfig} */
|
||||
serverRuntimeConfig: {
|
||||
MONGO_URL: envVar.get('MONGO_URL').required().asUrlString(),
|
||||
MONGO_DB: envVar.get('MONGO_DB').required().asString(),
|
||||
MONGO_USER: envVar.get('MONGO_USER').required().asString(),
|
||||
MONGO_PASS: envVar.get('MONGO_PASS').required().asString()
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
|
||||
Reference in New Issue
Block a user