feat: Add env variables to support exposing /workflows/demo route and /nodes.json route (#8506)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Alex Grozav
2024-02-23 18:20:12 +02:00
committed by GitHub
parent 35fb7102cb
commit 4b01335aa4
9 changed files with 59 additions and 11 deletions

View File

@@ -359,6 +359,14 @@ export const routes = [
},
meta: {
middleware: ['authenticated'],
middlewareOptions: {
authenticated: {
bypass: () => {
const settingsStore = useSettingsStore();
return settingsStore.isPreviewMode;
},
},
},
},
},
{