Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starter no infra #26

Open
wants to merge 3 commits into
base: starter-no-infra
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update environnement variable
Hamzabny committed Nov 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 82495bfd9ee7b2b411020bf99223707887567275
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ async function getApp() {

// Database
// Use AZURE_COSMOS_CONNECTIONSTRING if available, otherwise fall back to MONGODB_URI
const mongoUri = process.env.MONGODB_URI; // For App Service, change to process.env.AZURE_COSMOS_CONNECTIONSTRING || process.env.MONGODB_URI;
const mongoUri = process.env.AZURE_COSMOS_CONNECTIONSTRING || process.env.MONGODB_URI; // For App Service, change to process.env.AZURE_COSMOS_CONNECTIONSTRING || process.env.MONGODB_URI;

mongoose.connect(mongoUri).then(() => {
console.log('Connected to database');