Skip to content

Commit

Permalink
chore: remove landing page and redirect to admin ui by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhck committed Oct 4, 2024
1 parent 6e96874 commit dda8d6b
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 376 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"compile": "tsc",
"compile:watch": "tsc --watch",
"dev": "ts-node src/index.ts",
"start": "node build/index.js"
},
"dependencies": {
Expand All @@ -24,6 +25,7 @@
},
"devDependencies": {
"@vendure/cli": "^3.0.0",
"ts-node": "^10.9.2",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions src/plugins/landing-page/landing-page-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import path from 'path';
req.url.indexOf('/mailbox') !== 0 &&
req.url.indexOf('/assets') !== 0 &&
req.url.indexOf('/storefront') !== 0) {
const file = req.url === '/' ? 'index.html' : req.url;
res.sendFile(path.join(__dirname, '../../../static/landing-page', file));
// redirecting to Admin UI by default
return res.redirect('/admin')
} else {
next();
}
Expand Down
Binary file removed static/landing-page/angular.png
Binary file not shown.
Binary file removed static/landing-page/browser-icon.afdesign
Binary file not shown.
26 changes: 0 additions & 26 deletions static/landing-page/browser-icon.svg

This file was deleted.

Binary file removed static/landing-page/favicon.ico
Binary file not shown.
Binary file removed static/landing-page/graphql-logo-small.png
Binary file not shown.
157 changes: 0 additions & 157 deletions static/landing-page/index.html

This file was deleted.

Binary file removed static/landing-page/logo.png
Binary file not shown.
Binary file removed static/landing-page/qwik.png
Binary file not shown.
Binary file removed static/landing-page/remix.png
Binary file not shown.
Loading

0 comments on commit dda8d6b

Please sign in to comment.