You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Use a middleware to achieve request-driven configuration refresh
// For more information, please go to dynamic refresh tutorial: https://learn.microsoft.com/azure/azure-app-configuration/enable-dynamic-configuration-javascript
server.use((req, res, next) => {
// this call is not blocking, the configuration will be updated asynchronously
appConfig.refresh();
next();
});
server.get("/", (req, res) => {
res.send(`Message from Azure App Configuration: ${config.message}`);
});
server.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);