Skip to content

Commit

Permalink
Hosting backend server
Browse files Browse the repository at this point in the history
  • Loading branch information
Levironexe committed Oct 17, 2024
1 parent 5bfa13f commit 829293a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/backend.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.use(express.json()); // Parse JSON requests
app.use(cors({ origin: '*' })); // Enable CORS for all origins

// MongoDB connection
const mongoUrl = 'mongodb+srv://leviron:[email protected]/BlockScanDB?retryWrites=true&w=majority&appName=BlockScan';
const mongoUrl = process.env.NEXT_PUBLIC_MONGODB;
mongoose
.connect(mongoUrl, { useNewUrlParser: true, useUnifiedTopology: true })
.then(() => console.log('Connected to MongoDB'))
Expand Down

0 comments on commit 829293a

Please sign in to comment.