Skip to content

Commit

Permalink
Serve file from static
Browse files Browse the repository at this point in the history
  • Loading branch information
dana-gill committed Jan 23, 2025
1 parent 73353e4 commit 7a123cc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/cli/src/abstract-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ export abstract class AbstractServer {
this.app.set('view engine', 'handlebars');
this.app.set('views', TEMPLATES_DIR);

const assetsPath: string = path.join(__dirname, '../assets');
this.app.use('/assets', express.static(assetsPath));

const proxyHops = config.getEnv('proxy_hops');
if (proxyHops > 0) this.app.set('trust proxy', proxyHops);

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/oauth-callback.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</head>
<body>
<div class="logo">
<img src="/assets/n8n-logo.png" class="logo" />
<img src="/static/n8n-logo.png" class="logo" />
</div>
<div class="center-container">
<div>
Expand Down
Binary file added packages/editor-ui/public/static/n8n-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7a123cc

Please sign in to comment.