修改拼写错误

This commit is contained in:
赵鑫 2022-08-26 12:34:04 +08:00
parent c81f6df88d
commit 24158f15a9
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ require('dotenv').config()
module.exports = {
SERVER_HOST: process.env.HOST || 'localhost',
SERVER_PORT: process.env.PORT || '3000',
MONGDB_URL: process.env.MONGDB || 'mongodb://localhost/data',
MONGODB_URL: process.env.MONGDB || 'mongodb://localhost/data',
}

View File

@ -1,7 +1,7 @@
const { SERVER_HOST, SERVER_PORT, MONGDB_URL } = require('./config')
const { SERVER_HOST, SERVER_PORT, MONGODB_URL } = require('./config')
const express = require('express')
const mongoose = require('mongoose')
mongoose.connect(MONGDB_URL, (error) => {
mongoose.connect(MONGODB_URL, (error) => {
if (error) {
console.error(error)
} else {